num definition
An expression that returns a numeric result. Constant numeric value rules:
- A sequence of digits (e.g. 365).
- A real number (e.g. 3.14159).
- A number in scientific notation (e.g. 1.5E+10).
- A binary number starts with &B (e.g. &B10).
- An octal number starts with &O (e.g. &O10).
- A hex number starts with &H (e.g. &H10).
- One or more '_' characters can be used as insignificant placeholders between two digits. (e.g. 1_000_000, &B_1000_0100_0010_0001).
- A specific type of number can be indicated by using one of the endings shown in the table below:
Ending |
Description |
I or % |
The number is a Integer value. |
L or & |
The number is a Long value. |
H |
The number is a Huge_ value. |
UI |
The number is a UInteger value. |
UL |
The number is a ULong value. |
UH |
The number is a UHuge_ value. |
C |
The number is a Currency value. |
D |
The number is a Decimal value. |
F or ! |
The number is a Single value. |
R or # |
The number is a Double value. |
? |
The number is a PortInt value. |
@ |
The number is a Currency value. |