Programming languages have different ways of expressing floating-point literals.



Task

Show how floating-point literals can be expressed in your language: decimal or other bases, exponential notation, and any other special features.

You may want to include a regular expression or BNF/ABNF/EBNF defining allowable formats for your language.



Related tasks

   Literals/Integer
   Extreme floating point values


      REM Floating-point literal syntax:
      REM  [-]{digit}[.]{digit}[E[-]{digit}]
 
      REM Examples:
      PRINT -123.456E-1
      PRINT 1000.0
      PRINT 1E-5
 
      REM Valid but non-standard examples:
      PRINT 67.
      PRINT 8.9E
      PRINT .33E-
      PRINT -.