/* C program to write out floating point numbers in binary form */
/* Compile on a Unix system using "cc filename.c" */
/* Run on a Unix system using "a.out x > temp" (where x is a number.) */
/* Examine the results on a Unix system using "od -x temp" */
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char * argv[])
{
float x;
if ( argc == 1 ) return 1;
x=(float) atof(argv[1]);
write(1, (char *) &x, sizeof(x));
return 0;
}