Skip to content

Commit 1ee9932

Browse files
authored
Apply suggestions from code review
Signed-off-by: Athan <kgryte@gmail.com>
1 parent 216b78f commit 1ee9932

File tree

1 file changed

+5
-5
lines changed
  • lib/node_modules/@stdlib/math/base/special/gammasgnf/lib

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,17 @@ function gammasgnf( x ) {
5353
return NaN;
5454
}
5555
if ( x > 0.0 ) {
56-
return float64ToFloat32( 1.0 );
56+
return 1.0;
5757
}
5858
fx = floorf( x );
5959
if ( x === fx ) {
60-
return float64ToFloat32( 0.0 );
60+
return 0.0;
6161
}
62-
fx = float64ToFloat32( fx / float64ToFloat32( 2.0 ) );
62+
fx = float64ToFloat32( fx / 2.0 );
6363
if ( fx === floorf( fx ) ) {
64-
return float64ToFloat32( 1.0 );
64+
return 1.0;
6565
}
66-
return float64ToFloat32( -1.0 );
66+
return -1.0;
6767
}
6868

6969

0 commit comments

Comments
 (0)