num definition

An expression that returns a numeric result. Constant numeric value rules:

  • A sequence of digits (for example,. 365).
  • A real number (for example,. 3.14159).
  • A number in scientific notation (for example,. 1.5E+10).
  • A binary number starts with &B (for example,. &B10). The interpretation is affected by the '#Language setting.
  • An octal number starts with &O (for example,. &O10). The interpretation is affected by the '#Language setting.
  • A hex number starts with &H (for example,. &H10). The interpretation is affected by the '#Language setting.
  • One or more '_' characters can be used as insignificant placeholders between two digits. (for example,. 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. The interpretation of the type is controlled by the '#Language setting.
    L or & The number is a Long value. The interpretation of the type is controlled by the '#Language setting.
    H The number is a Huge_ value.
    UI The number is a UInteger value. The interpretation of the type is controlled by the '#Language setting.
    UL The number is a ULong value. The interpretation of the type is controlled by the '#Language setting.
    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. The interpretation of the type is controlled by the '#Language setting.