Decimal.From
Creates a Decimal from the given value.
function (optionalvalue
as nullable any, optionalculture
as nullable any) as nullable any
Returns a Decimal
number
value from the given value
. If the given value
is null
, Decimal.From
returns null
. If the given value
is number
within the range of Decimal, 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 Decimal number
value applies.Number.Conversion and formatting
Get the Decimal
number
value of "4.5"
.Decimal.From("4.5")
4.5
Last modified 4yr ago