FLOATING POINT CONSTANTS

In XCSB floating point constants begin with any of the digits 0 to 9. This is the same as a decimal number, however floating point constants differ from normal deciaml constants in that they also have a decimal point or exponent part.

The following constants are shown in BLUE for integer and RED for floating point

0
0.0
1
1.0
12345.6
1.23e4
1.23e-4
123e4
123
1234

NOTE: spaces and commas may not apear in numeric constants

The number 123 456 is treated as two distinct numbers 123 and 456

The number 123,456 is treated as two distinct numbers with a comma seperating them