Real

Description

Converts a string value to a real datatype.

Syntax

Real ( string )

Argument

Description

string

The string whose value you want to convert to a real

Returns

Real. Returns the contents of a string as a real. If string is not a valid number, Real returns 0.

Examples

Example 1

This expression converts 24 to a real:

Real("24")

Example 2

This expression returns the value in the column temp_text as a real:

Real(temp_text)