Number.FromText

About

Returns a number value from a text value.

Syntax

Number.FromText(text as nullable text, optional culture as nullable text) as nullable number  

Arguments

Argument Description
text Text value to convert to a number. If text does not represent a valid number, Expression.Error is thrown.
optional culture A text value corresponding to the culture values supported on your version of Windows, such as "en-US". If the culture is not specified, the current user culture is used. For a list of culture names, see National Language Support (NLS) API Reference.

Examples

Number.FromText("1") equals 1  
Number.FromText("a") equals error