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


something = 127
something = '127'     /*exactly the same as the above. */
something = 1.27e2
something = 1.27E2
something = 1.27E+2
something = '    +    0001.27e+00000000000000002     '