Background documentationFixed Point Number (fixed_point_literal) Locate this document in the navigation structure

 

A fixed point number (fixed_point_literal) is a numeric literal that specifies a number as a fixed point number.

Structure

Syntax Syntax

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

Example Example

+123.12

1234.

End of the example.