File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
lib/node_modules/@stdlib/math/base/special/round10f Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2727#include "stdlib/constants/float32/min_base10_exponent_subnormal.h"
2828
2929// 10^38:
30- static const float HUGE_VALUE = 1.0e38 ;
30+ static const float HUGE_VALUE = 1.0e38f ;
3131
3232// 10^-45
33- static const float TINY_VALUE = 1.0e-45 ;
33+ static const float TINY_VALUE = 1.0e-45f ;
3434
3535/**
3636* Rounds a numeric value to the nearest power of `10` on a linear scale.
Original file line number Diff line number Diff line change @@ -80,11 +80,11 @@ tape( 'the function does not overflow', function test( t ) {
8080
8181 x = 1.7976931348623157e+38 ;
8282 v = round10f ( x ) ;
83- t . strictEqual ( v , 1.0e38 , 'returns expected value hi ' ) ;
83+ t . strictEqual ( v , 1.0e38 , 'returns expected value' ) ;
8484
8585 x = - 1.7976931348623157e+38 ;
8686 v = round10f ( x ) ;
87- t . strictEqual ( v , - 1.0e38 , 'returns expected value hi2 ' ) ;
87+ t . strictEqual ( v , - 1.0e38 , 'returns expected value' ) ;
8888
8989 t . end ( ) ;
9090} ) ;
You can’t perform that action at this time.
0 commit comments