Skip to content

Commit

Permalink
Update example.c
Browse files Browse the repository at this point in the history
  • Loading branch information
gunjjoshi authored Aug 12, 2024
1 parent a713284 commit ed05d9c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ int main( void ) {
// Generate a random number:
frac = rand_double() * 10.0;
exp = (int32_t)( rand_double()*616.0 ) - 308;
x = sign * frac * pow( 10.0, exp );
x = sign * frac * stdlib_base_pow( 10.0, exp );

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

0 comments on commit ed05d9c

Please sign in to comment.