REAL/LREAL Constants

Overview

REAL and LREAL constants can be given as decimal fractions and represented exponentially. Use the decimal point as decimal separator according to the International System of Units (SI).

Examples

REAL/LREAL Constant

Description

7.4

Do not use 7,4 because the comma will result in a compiler error.

1/3.0

Decimal fraction for 0.333333343.

NOTE: In the case of division of integer types, the result remains an integer type. The value is rounded.

For example, 1/3 yields 0 as the result.

1.64e+009

Do not use 1,64e+009 for exponential notations because the comma will result in a compiler error.

For limits of the REAL and LREAL data types, refer to the description of the Standard Data Types.