Numeric constants

A numeric constant consists of numeric and special characters, with no intervening spaces, that conform to the following rules:

The following table shows the acceptable formats for entering numbers.

Type of Number

Constant

Result

Decimal

.123

0.123

Integer

123

123

Negative number

-123.4

-123.4

Scientific notation

123E2, 123E-2

12300, 1.23