diff options
author | Roland McGrath <roland@gnu.org> | 1992-03-20 23:01:03 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1992-03-20 23:01:03 +0000 |
commit | e238b0b10ddf39ffa729f0a0021873e3352ad0ff (patch) | |
tree | a618be039fb2af83fdd783c32d44ed3f48963056 /math | |
parent | c24035645b5bad784d37001d5b0d1977f179999e (diff) |
Initial revision
Diffstat (limited to 'math')
-rw-r--r-- | math/test-math.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/math/test-math.c b/math/test-math.c new file mode 100644 index 0000000000..4665d8cc34 --- /dev/null +++ b/math/test-math.c @@ -0,0 +1,17 @@ +#include <ansidecl.h> +#include <stdio.h> +#include <math.h> +#include <stdlib.h> + +int +DEFUN_VOID(main) +{ + CONST char str[] = "123.456"; + double x; + + x = atof (str); + + printf ("%g %g\n", x, pow (10.0, 3.0)); + + return 0; +} |