website page counter

Difference Between Float And Double C

Best image references website

Difference Between Float And Double C. The set of values of the type float is a subset of the set of values of the type double. Float contains 32 bits 3.

C Data Types Datatype Modifiers C Data Types C Programming Tutorials Type
C Data Types Datatype Modifiers C Data Types C Programming Tutorials Type from www.pinterest.com

We should use float if we have memory constraint because it occupies half-space than double. I never really used long double but I dont use CC so much. Both float and double use 1 bit for representing the sign of the number.

Jul 30 2017 double has 2x more precision then float.

Double is more precise than float. Double 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 ie. It has a single precision.

close