-
-
Notifications
You must be signed in to change notification settings - Fork 9
Floating Point Literal
IsaacShelton edited this page Mar 21, 2022
·
1 revision
Floating point literals are floating point values of an unspecified type.
Example 1
1000.0
Example 2
-8476.14159
Example 3
1.414e10
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.