int obj = 0;
float buf1 = 0;
obj = fread(&buf1, sizeof(float), 1, out);
printf("%.2f\n", buf1);
void readFromFile(void *data, int size, int n, FILE *out)
{
int n_obj = 0;
n_obj = fread(&data, size, n, out);
printf("%.2f\n", data);
}
float buf = 0;
readFromFile(&buf, sizeof(float), 1, out);