Skip to content

Commit ed05d9c

Browse files
authored
Update example.c
1 parent a713284 commit ed05d9c

File tree

1 file changed

+1
-1
lines changed
  • lib/node_modules/@stdlib/math/base/special/ldexp/examples/c

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/math/base/special/ldexp/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ int main( void ) {
4747
// Generate a random number:
4848
frac = rand_double() * 10.0;
4949
exp = (int32_t)( rand_double()*616.0 ) - 308;
50-
x = sign * frac * pow( 10.0, exp );
50+
x = sign * frac * stdlib_base_pow( 10.0, exp );
5151

5252
// Break the number into a normalized fraction and an integer power of two:
5353
stdlib_base_frexp( x, &frac, &exp );

0 commit comments

Comments
 (0)