UNPKG

@johnsunam/roundoff

Version:

This moudule simply roundoff the floating number to the decimal place you supplied.

8 lines (7 loc) 258 B
const RoundOff = require('../src'); describe('roundoff decimal value to the provided parameter', () => { it('should return roundff value', () => { let roundedValue = RoundOff(3.45678, 3); expect(roundedValue).toEqual(3.457); }); });