Skip to content

Commit ff1cfab

Browse files
committed
fixes the Lint errors
1 parent 153d4e9 commit ff1cfab

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

lib/node_modules/@stdlib/math/base/special/roundnf/lib/native.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ var addon = require( './../src/addon.node' );
3434
* @returns {number} rounded value
3535
*
3636
* @example
37+
* var roundnf = require( '@stdlib/math/base/special/roundnf/native.js' );
38+
*
3739
* var v = roundnf( 3.141592, -2 );
38-
* // returns 3.14
40+
* // returns 3.140000104904175
3941
*
4042
* @example
4143
* var v = roundnf( 3.141592, 0 );

lib/node_modules/@stdlib/math/base/special/roundnf/test/test.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ tape( 'the function returns NaN if provided NaN', opts, function test( t ) {
5555

5656
tape( 'the function returns NaN if provided n = NaN', opts, function test( t ) {
5757
var v = roundnf( 3.14, NaN );
58-
t.strictEqual( isnanf( v ), true, 'returns NaN' );
58+
t.strictEqual( isnanf( float64ToFloat32( v ) ), true, 'returns NaN' );
5959
t.end();
6060
});
6161

0 commit comments

Comments
 (0)