Power Query
published
Search
⌃K

Single.From

Single.From

Creates a Single from the given value.
function (optional value as nullable any, optional culture as nullable any) as nullable any

Description

Returns a Single number value from the given value. 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.

Category

Number.Conversion and formatting

Examples

Get the Single number value of "1.5".
Single.From("1.5")
1.5