A float number has 4 bytes. How do I save these bytes to disk?
As example, an unsigned short:
How would I procceed with a float? TKS
As example, an unsigned short:
Code:
unsigned short bleh = 0xFDCA;
byte1 = bleh & 0xFF;
byte2 = (bleh >> 8) & 0xFF; //or whatever is the endianess...
byte1 = bleh & 0xFF;
byte2 = (bleh >> 8) & 0xFF; //or whatever is the endianess...
How would I procceed with a float? TKS