We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df0eb4c commit 4a794b6Copy full SHA for 4a794b6
lib/node_modules/@stdlib/math/base/special/roundnf/test/test.js
@@ -95,10 +95,11 @@ tape( 'the function supports rounding to nearest hundred (n=2)', function test(
95
});
96
97
tape( 'the function supports rounding to nearest thousand (n=3)', function test( t ) {
98
- var v = roundnf( 12368.0, 3 );
99
var expected = float64ToFloat32( 12000.0 );
+ var v = roundnf( 12368.0, 3 );
100
+
101
// Due to float32 precision, allow small error (< 1.0)
- t.ok( Math.abs( v - expected ) < 1.0, 'returns expected value (within float32 precision)' );
102
+ t.ok( abs( v - expected ) < 1.0, 'returns expected value (within float32 precision)' );
103
t.end();
104
105
0 commit comments