double-double
Version:
Pure double-double precision functions *with strict error bounds*.
18 lines (14 loc) • 409 B
text/typescript
import { expect } from 'chai';
import { describe } from 'mocha';
import { split } from '../../src/index.js';
describe('split', function() {
it('should split a double into two 27-bit significand doubles without any error',
function() {
let a = 1.23456789012345;
let parts = split(a);
expect(parts).to.eql([
1.2345678806304932,
9.492956865031488e-9
]);
});
});