c 2b 2b double higher precision then float

Solutions on MaxInterview for c 2b 2b double higher precision then float by the best coders in the world

showing results for - "c 2b 2b double higher precision then float"
Manuel
13 Jun 2018
1For representing floating point numbers, we use float, double and long double.
2
3What’s the difference ?
4
5double has 2x more precision then float.
6
7float is a 32 bit IEEE 754 single precision Floating Point Number1 bit for the sign, (8 bits for the exponent, and 23* for the value), i.e. float has 7 decimal digits of precision.
8
9double is a 64 bit IEEE 754 double precision Floating Point Number (1 bit for the sign, 11 bits for the exponent, and 52* bits for the value), i.e. double has 15 decimal digits of precision.