Background documentationFloating Point Number (floating_point_literal) Locate this document in the navigation structure

 

A floating point number (floating_point_literal) is a numeric literal that specifies a number as a floating point number.

Structure

Syntax Syntax

  1. <floating_point_literal> ::=
      <mantissa>E<exponent>
    | <mantissa>e<exponent>
    
    <mantissa> ::=
      <fixed_point_literal>
    
    <exponent> ::=
      [<sign>][[<digit>]<digit>]<digit>
    
    <sign> ::=
      +
    | -
    
    <digit> ::=
      0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
End of the code.

Example Example

1e160

-765E-04

End of the example.