9 int main(int argc, char ** argv)
13 printf("Enter a double: ");
14 fgets(buffer, BUFSIZ, stdin);
15 sscanf(buffer, "%lf", &input);
18 float f = (float)(input);
23 memcpy(&i, &input, 8);
26 printf("\nAs float: %s\n", b32.to_string().c_str());
27 printf("\nAs double: %s\n", b64.to_string().c_str());
30 printf("\nAs real: %s\n", r.repr.to_string().c_str());