diff options
author | Roland McGrath <roland@gnu.org> | 1992-08-07 20:53:50 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1992-08-07 20:53:50 +0000 |
commit | 7954310116efceba636b79bf3a470acd170fa810 (patch) | |
tree | e84228bbb26726f9fcece4cc60a877d7d02e9a7f /math | |
parent | 460cdb6c66b7dccf0a1d07317bffadef409788d2 (diff) |
Formerly ../math/test-math.c.~6~
Diffstat (limited to 'math')
-rw-r--r-- | math/test-math.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/math/test-math.c b/math/test-math.c index 21e873de47..c3f539592d 100644 --- a/math/test-math.c +++ b/math/test-math.c @@ -70,7 +70,13 @@ DEFUN_VOID(main) printf("x%-8.6gx\n", .5); printf("x%6.6gx\n", .5); - puts (atof ("-1e-17-") == -1e-17 ? "4 Worked!" : "4 Failed!"); + { + double x = atof ("-1e-17-"); + printf ("%g %c= %g %s!\n", + x, -1e-17, + x == -1e-17 ? '=' : '!', + x == -1e-17 ? "Worked" : "Failed"); + } return 0; } |