UNPKG

double-double

Version:

Pure double-double precision functions *with strict error bounds*.

17 lines (11 loc) 445 B
import { expect } from 'chai'; import { describe } from 'mocha'; import { ddDivBy2 } from '../../../src/index.js'; describe('ddDivBy2', function() { it('should correctly divide some double-double precision values by 2', function() { // Some double-doubles let a = [4.511949494578893e-11, -2797357.2918064594]; expect(ddDivBy2(a)).to.eql([2.2559747472894465e-11, -1398678.6459032297]); }); });