A numeric value is always encoded with a period as a decimal separator. Negative values are indicated by a leading minus sign.
The number 1,567.56 is used in the code as
1567.56
The scientific spelling is also supported:
The number -1567 10-20 can be used in the code as a
-1567E-20 or -1.567E-23
Numbers can also be given in the so-called hexadecimal notation (to base 16). In addition to the characters 0-9, the characters A-F are also accepted as number characters.
The number 255 can be hexadecimal as
&HFF
be specified. This notation is common for color values for GDI objects:
&HC00AFF
C0 for the blue value, 0A for the green value, FF for the red value. The valuation of the color values for GDI objects can also be carried out with the RGB function. The RGBA function is available for GDI+ objects.
To convert a number to base 10 to a number to base 16, use the Hex function.
Numbers with decimal places must be associated with a variables of type Double or Variant, integers of the variable type Long or Variant.
A Boolean variable encodes True as -1 and False as 0.