summaryrefslogtreecommitdiffstats
path: root/man3/frexp.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/frexp.3')
-rw-r--r--man3/frexp.36
1 files changed, 3 insertions, 3 deletions
diff --git a/man3/frexp.3 b/man3/frexp.3
index 79aa51342..9576b0306 100644
--- a/man3/frexp.3
+++ b/man3/frexp.3
@@ -124,16 +124,16 @@ frexp(\-4, &e) = \-0.5: \-0.5 * 2\[ha]3 = \-4
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
-
+\&
int
main(int argc, char *argv[])
{
double x, r;
int exp;
-
+\&
x = strtod(argv[1], NULL);
r = frexp(x, &exp);
-
+\&
printf("frexp(%g, &e) = %g: %g * %d\[ha]%d = %g\en",
x, r, r, FLT_RADIX, exp, x);
exit(EXIT_SUCCESS);