Number

<number>

──┬────────┬─<unsigned number>─────────────────────────────────────────┤
  └─<sign>─┘

<sign>

──┬─ + ─┬──────────────────────────────────────────────────────────────┤
  └─ - ─┘

<unsigned number>

──┬─<decimal number>─┬─────────────────┬───────────────────────────────┤
  │                  └─<exponent part>─┤
  └─<exponent part>────────────────────┘

<decimal number>

──┬─<unsigned integer>─┬────────────────────┬──────────────────────────┤
  │                    ├─<decimal fraction>─┤
  │                    └─ . ────────────────┤
  └─<decimal fraction>──────────────────────┘

<unsigned integer>

  ┌◄────────┐
──┴─<digit>─┴──────────────────────────────────────────────────────────┤

<decimal fraction>

── . ──<unsigned integer>──────────────────────────────────────────────┤

<exponent part>

── @ ─┬─────┬─<integer>────────────────────────────────────────────────┤
      └─ @ ─┘

<integer>

──┬────────┬─<unsigned integer>────────────────────────────────────────┤
  └─<sign>─┘

No space can appear within a decimal number. A number that contains the double-precision exponent delimiter @@ is considered to be a double-precision number. A number without @@ that can be represented in single-precision without loss of precision or range is considered to be a single-precision number.

Otherwise, a number without @@ that can be represented in double integer without loss of precision or range is controlled by the $DINTEGER compiler control option. If $DINTEGER is set, the number is considered to be a double integer number. If $DINTEGER is reset, the number is considered to be a single-precision number and is rounded. All other numbers are considered to be single-precision numbers.

Examples

Unsigned Integers

Decimal Fractions

Decimal Numbers

5

.5

69.

69

.69

.546

.013

3.98

25

Integers

Exponent Parts

Unsigned Numbers

1776

@8

99.44

-62256

@-06

@-11

+548

@+54

1354.543@48

@@16

.1864@4

Valid Numbers

0 +545627657893 1.75@-46 -4.31468 -@2 .375

Invalid Numbers

Reason

50 00.5@8 8

Blank spaces are not allowed.

1,505,278

Commas are not allowed.

@63.4

Exponent part must be an integer.

1.667E-01 0

E is not allowed for exponent part.