Percentage.From

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, see Number.From for converting it to number value.

Example 1

Get the percentage value of "12.3%".

Percentage.From("12.3%")

0.123