1 #include <stdio.h> 2 #include "../lib/ieee754.h" 3 4 static double values[] = { -17.23, 17.23, 123.4567, 98765.4321, 0.0 }; 5 main(int argc,char * argv[])6int main(int argc, char *argv[]) 7 { 8 uint64_t i; 9 double f; 10 int j; 11 12 j = 0; 13 do { 14 i = fio_double_to_uint64(values[j]); 15 f = fio_uint64_to_double(i); 16 printf("%f -> %f\n", values[j], f); 17 j++; 18 } while (values[j] != 0.0); 19 20 return 0; 21 } 22