You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
360 B
21 lines
360 B
#include <stdio.h> |
|
#include "../lib/ieee754.h" |
|
|
|
static double values[] = { -17.23, 17.23, 123.4567, 98765.4321, 0.0 }; |
|
|
|
int main(int argc, char *argv[]) |
|
{ |
|
uint64_t i; |
|
double f; |
|
int j; |
|
|
|
j = 0; |
|
do { |
|
i = fio_double_to_uint64(values[j]); |
|
f = fio_uint64_to_double(i); |
|
printf("%f -> %f\n", values[j], f); |
|
j++; |
|
} while (values[j] != 0.0); |
|
|
|
return 0; |
|
}
|
|
|