Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Syntax
Percentage.From(value as any, optional culture as nullable text) as nullable number
About
Returns a percentage
value from the given value
. If the given value
is null
, Percentage.From returns null
. If the given value
is text
with a trailing percent symbol, then the converted decimal number will be returned. Otherwise, the value will be converted to a number
using Number.From. An optional culture
may also be provided (for example, "en-US").
Example 1
Get the percentage
value of "12.3%"
.
Usage
Percentage.From("12.3%")
Output
0.123