C provides two main floating-point representations: float (single precision) and double (double precision). : float number « Data Type « C Tutorial






A floating-point number has a fractional part and a biased exponent.

Float occupies 4 bytes and double occupies 8 bytes.

2.17.float number
2.17.1.C provides two main floating-point representations: float (single precision) and double (double precision).
2.17.2.Formats for representing floating points
2.17.3.Use the format %f for printing floating numbers
2.17.4.For printing double you can use %lf.