quaeratin
Version:
An extended precision floating point library (as per Shewchuk) - precision only limited by overflow / underflow
19 lines (15 loc) • 442 B
text/typescript
import { expect } from 'chai';
import { describe } from 'mocha';
import { eIntPow } from '../../src/index.js';
describe('eIntPow', function() {
it('should correctly return the integer power of a floating point expansion without any error',
function() {
{
let a = [2];
expect(eIntPow(a,0)).to.eql([1]);
expect(eIntPow(a,1)).to.eql([2]);
expect(eIntPow(a,2)).to.eql([4]);
expect(eIntPow(a,8)).to.eql([256]);
}
});
});