What are real numbers?

A Real number represents a numeric value with a fractional parts (the fractional part may be zero).

Irie Pascal supports real numbers with values between about 1e308 and about -1e308.

Examples

   123.456
   1.23456e2   which is also equal to 123.456
   1.23456e02  which is also equal to 123.456
   123456.0e-3 which is also equal to 123.456
   7e-1        which is equal to 0.7

Syntax

   real-number =
       digit-sequence '.' fractional-part [ exponent scale-factor ] |
       digit-sequence exponent scale-factor

   digit = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9'

   digit-sequence = digit { digit }

   exponent = 'e'

   fractional-part = digit-sequence

   scale-factor = [ sign ] digit-sequence

   sign = '-' | '+'