Example: Numeric literals in expressions
Name | Description | Example |
Integers | Numbers 0-9 specified in base-10 format. Leading zeros are not allowed. 0 is allowed, 01 is not allowed. | 123 |
Floating point | Numbers that begin with zero or more base-10 digits, then the period character as decimal separator, followed by one or more base-10 digits. Leading zeros are not allowed to the left of the decimal point, unless it is just a single zero immediately preceding the decimal point. Examples: | 1.23, .23, and 123.45 |
Exponential | Numbers that begin with an integer or floating point number, followed by the character 'e' (or 'E') and an integer. A negation operator '-' is allowed before the exponent; other operators are not. | 6.02e23 means 6.02 * 1023 1.66e-27 means 1.66 * 10-27 |
Provide Feedback