3.00
is interpreted as a double
, as opposed to 3.00f
which is seen by the compiler as a float
.
The f
suffix simply tells the compiler which is a float
and which is a double
.
See MSDN (C++)
More Related Contents:
- Why does >= operator work as > operator in C when compared with 0.9 [duplicate]
- Correct format specifier for double in printf
- ‘float’ vs. ‘double’ precision
- How to get the sign, mantissa and exponent of a floating point number
- How to compare double numbers?
- Simd matmul program gives different numerical results
- How to convert string to float?
- Floating point comparison `a != 0.7` [duplicate]
- Representing integers in doubles
- C: printf a float value
- C: Casting minimum 32-bit integer (-2147483648) to float gives positive number (2147483648.0)
- Are floating point operations in C associative?
- Convert double/float to string
- Comparing floating point numbers in C
- Comparing float and double in C
- Ranges of floating point datatype in C?
- Is it safe to assume floating point is represented using IEEE754 floats in C?
- Count number of digits after `.` in floating point numbers?
- Is there a tool to know whether a value has an exact binary representation as a floating point variable?
- problems in floating point comparison [duplicate]
- Is my fma() broken?
- C – Serialization of the floating point numbers (floats, doubles)
- C: How to wrap a float to the interval [-pi, pi)
- Variadic function (va_arg) doesn’t work with float?
- sin, cos, tan and rounding error
- Why does printf print random value with float and integer format specifier
- What precisely does the %g printf specifier mean?
- C Function to Convert float to byte array
- pow() cast to integer, unexpected result
- C dynamically printf double, no loss of precision and no trailing zeroes