YAN-1 said:
Actually no. I don't need to display it. Just process it. I guess I'll end up sending the integer part and the fraction separately.
You need to think carefully what you are doing, and why!. There's rarely any need to use floating point numbers, and it's always best to avoid them, as they are a GREAT deal slower than integers, and also lack accuracy.
A little bit of thought before you start often removes any requirement for them, for example if you were doing calculations using money, you wouldn't EVER use floating point (spreadsheets don't!).
So rather than $23.49, you would use 2349 cents, simply shift the decimal point, this is known as scaling - by using integer values it keeps the maths exactly correct, and avoids a bill for $23.4876487624387556 - which is inaccurate, and looks absolutely horrible!.
If you need to display a decimal point, you simply insert it in the display routines!.
So if you're displaying voltages?, don't store as 5.60V, but use 5600mV instead!.
Bear in mind, your variables should be stored as binary numbers, so two bytes gives up to 65535, and 4 bytes gives up to 4294967295, 16 bit and 32 bit precision respectively.