diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-01-23 16:28:10 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-01-23 16:28:10 +0000 |
commit | 545e51be154967ab3e8d82fff5f7c25487076e72 (patch) | |
tree | 24cdc7527b6e430111c26b00fddf66fc3ad91178 /test/math/rint.c | |
parent | bce788f4dc069f977a8e55dd3d69f3fa4a498170 (diff) |
Update tests to be somewhat consistant with the rest of the world
Diffstat (limited to 'test/math/rint.c')
-rw-r--r-- | test/math/rint.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/math/rint.c b/test/math/rint.c new file mode 100644 index 000000000..399fb90e3 --- /dev/null +++ b/test/math/rint.c @@ -0,0 +1,11 @@ +#include <math.h> +#include <stdlib.h> +#include <stdio.h> + +int main(void) { + double d1, d2; + d1 = 0.6; d2 = rint(d1); + printf("d1 = %f, d2 = %f\n", d1, d2); + return 0; +} + |