0

Can one use long float and unsigned float ? And why should we use double ?

22nd Oct 2016, 4:13 AM
vinod nair
vinod nair - avatar
2 Respostas
+ 1
Double stands for double-precision, which means that a double has more decimal places than a float (double 15, float 7). As far as I know, long-floats don't exist, nor do unsigned-floats (since floats follow the IEEE 754 standard). To briefly elaborate on unsigned data types, an integer's range is 4 bytes, and an unsigned integer's range is 4 bytes as well. Unsigned data types don't necessarily represent "larger" amounts, just "different" amounts. Here's a link if you want to know more about floating point data-types: https://en.wikipedia.org/wiki/IEEE_floating_point
22nd Oct 2016, 4:27 AM
DaemonErrors
DaemonErrors - avatar
- 1
yes and we use double to right numbers like 9.876
26th Oct 2016, 12:07 PM
just for you. com
just for you. com - avatar