Skip to content
HPCCSystems Solutions Lab
HPCCSystems Solutions Lab

REAL

REAL data type is an n-byte standard IEEE floating point value. Valid values are 4 or 8.

Syntax

REAL [n] attribName
ValueDefinition
REALOptional, recommended.
[n]Optional, if omitted, REAL is a double-precision floating-point value (8-bytes).
attribNameThe name by which the variable will be invoked.

Value Range

TypeSignificant DigitsLargest ValueSmallest Value
REAL47 (9999999)3.402823e+038 } 1.175494e-038
REAL815 (999999999999999)1.797693e+308

Example


/*
REAL Examples.
*/

REAL Real_Num1 := 21.2545;
REAL Real_Num2 := 23.154;

OUTPUT(Real_Num1, NAMED('Real_Num1'));
OUTPUT(Real_Num2, NAMED('Real_Num2'));
OUTPUT( Real_Num1 + Real_Num2, NAMED('TotalSum'));
Try Me