/* WARNING: This file was generated by dkct. Changes you make here will be lost if dkct is run again! You should modify the original source and run dkct on it. Original source: test-sqdbl.ctr */ /** @file test-sqdbl.c The test-sqdbl module. */ #line 1 "test-sqdbl.ctr" #include "dk4conf.h" #include "dk4types.h" #include #include #include "dk4str8.h" #line 13 "test-sqdbl.ctr" int main(void) { char buf[64]; double v; int i; v = 5.555 / 1000000.0; for (i = 0; i < 12; i++) { if (0 != dk4str8_double_to_string(buf, sizeof(buf), v, 0, NULL)) { fputs(buf, stdout); fputc('\n', stdout); } if (0 != dk4str8_double_to_string(buf, sizeof(buf), v, 1, NULL)) { fputs(buf, stdout); fputc('\n', stdout); } v = 10.0 * v; fputc('\n', stdout); } return 0; }