Number.FromText
Syntax
Number.FromText(text as nullable text, optional culture as nullable text) as nullable number
About
Returns a number
value from the given text value, text
.
text
: The textual representation of a number value. The representation must be in a common number format, such as "15", "3,423.10", or "5.0E-10".culture
: An optional culture that controls howtext
is interpreted (for example, "en-US").
Example 1
Get the number value of "4"
.
Usage
Number.FromText("4")
Output
4
Example 2
Get the number value of "5.0e-10"
.
Usage
Number.FromText("5.0e-10")
Output
5E-10
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for