Previous Topic: Integer LiteralsNext Topic: Decimal Literals


Floating Point Literals

A floating-point literal specifies a floating-point number as two numbers separated by an E. The first number may include a decimal point and a sign. The second number may include a sign, but not a decimal point.

The data type of a floating-point literal can be FLOAT, REAL or DOUBLE PRECISION. The value of the literal is the product of the first number and the power of 10 specified by the second number. The value must be within the range of floating-point numbers.

The number of characters in the literal must not exceed 30. Excluding leading zeros:

Examples of floating-point literals are: