Table of contents
TOC
Collapse the table of content
Expand the table of content

Single.From

Owen Duncan|Last Updated: 10/5/2018
|
1 Contributor

About

Returns a Single number value from the given value.

Single.From(value as any, optional culture as nullable text)  as nullable number  

Arguments

ArgumentDescription
valueValue to convert.
optional cultureA 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.

Remarks

If the given value is null, Single.From returns null. If the given value is number within the range of Single, value is returned, otherwise an error is returned. If the given value is of any other type, see Number.FromText for converting it to number value, then the previous statement about converting number value to Single number value applies.

Examples

Single.From("1.5") equals 1.5  
© 2018 Microsoft