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, 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
الملاحظات
https://aka.ms/ContentUserFeedback.
قريبًا: خلال عام 2024، سنتخلص تدريجيًا من GitHub Issues بوصفها آلية إرسال ملاحظات للمحتوى ونستبدلها بنظام ملاحظات جديد. لمزيد من المعلومات، راجعإرسال الملاحظات وعرضها المتعلقة بـ