Skip to content

Commit 5664767

Browse files
feat(math): add math/base/special/round10f
1 parent 0c2b350 commit 5664767

File tree

2 files changed

+4
-4
lines changed
  • lib/node_modules/@stdlib/math/base/special/round10f

2 files changed

+4
-4
lines changed

lib/node_modules/@stdlib/math/base/special/round10f/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
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.

lib/node_modules/@stdlib/math/base/special/round10f/test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)