 Numeric Constant
Calculations numeric constant digit 0 digit 1 digit 2 digit 3 digit 4 digit 5 digit 6 digit 7 digit 8 digit 9 decimal point negative sign exponent

A numeric constant can be used any time a numeric term is expected. A numeric constant can be specified in two ways. The first possibility is to assemble the number out of the elements of digits 0 to 9, decimal point, sign and exponent. A number is entered the same way as in a normal text entry with the difference that the entry takes place by assembling the elements from above downwards. The mantissa part of the number can contain up to 15 digits, its exponent ranging between -308 and +308.

Another possibility is to enter the numeric expression directly into the describing text of the numeric constant description. In order that this entry mode might be exerted, the constant must not contain any element of the above entry manner. Behind the number entry any text can be stated.

A number can be entered in the hexadecimal form by inserting the \$ (dollar) character in front of the number. Thus e.g. the entry \$1F corresponds the number 31. Similarly, by inserting the % (the percent character) a number can be entered in the binary form. Thus e.g. the entry %1001 corresponds the number 9.

Elements of the digits 0 till 9 can be used in the program independently as numeric constants.

Full Html Context Help of The Peter - Gemtree Software & Children Programming