Syntax

real(*expression*)

**Description
**

The **real** function returns *expression* converted to a real value.

Table 6-9:realfunction

Data Type Conversion

boolean Ifexpressionis true, the result is 1; otherwise the result is 0.

character

stringExpressionis converted to a real value with the default formatting set. See Chapter 13,

Formatting Data Valuesfor information about default formatting sets. If the string cannot be converted to areal value, the result is 0.

date The result is one plus the number of days between

expressionand January 1, 1800.

integer No conversion required.

long No conversion required.

real No conversion required.

money

Expressionis divided by the money decimal place scaling factor in the default formatting set (dividedby 100 in the U.S.); see Chapter 13,

Formatting Data Valuesfor more information).

time The result is one plus the number of seconds between

expressionand midnight.

**Example
**

real ("123.45)