You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IsaacShelton edited this page Mar 21, 2022
·
1 revision
Floating Point Literal
Floating point literals are floating point values of an unspecified type.
Example 1
1000.0
Example 2
-8476.14159
Example 3
1.414e10
Type Determination
The type of the floating point literal is determined by the context around the literal. If the value is used alongside a value of a known floating point type, then the floating point literal will become that type, otherwise it will collapse to be of type double by default.