Skip to content

Commit fa9e2c1

Browse files
committed
chore: stuff from code review
1 parent a2681ba commit fa9e2c1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/node_modules/@stdlib/math/base/special/ahaversinf/lib/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
var asinf = require( '@stdlib/math/base/special/asinf' );
2424
var sqrtf = require( '@stdlib/math/base/special/sqrtf' );
25+
var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' );
2526

2627

2728
// MAIN //
@@ -49,7 +50,7 @@ var sqrtf = require( '@stdlib/math/base/special/sqrtf' );
4950
* // returns NaN
5051
*/
5152
function ahaversinf( x ) {
52-
return 2.0 * asinf( sqrtf( x ) );
53+
return float64ToFloat32( float64ToFloat32( 2.0 ) * asinf( sqrtf( x ) ) );
5354
}
5455

5556

lib/node_modules/@stdlib/math/base/special/ahaversinf/manifest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@
6868
"libpath": [],
6969
"dependencies": [
7070
"@stdlib/math/base/special/asinf",
71-
"@stdlib/math/base/special/sqrtf"
71+
"@stdlib/math/base/special/sqrtf",
72+
"@stdlib/number/float64/base/to-float32"
7273
]
7374
}
7475
]

0 commit comments

Comments
 (0)