INumberParser
INumberParser
INumberParser
INumberParser
Interface
Definition
An interface that parses a string representation of a numeric value.
public : interface INumberParserpublic interface INumberParserPublic Interface INumberParser// You can use this interface in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Methods
ParseDouble(String) ParseDouble(String) ParseDouble(String) ParseDouble(String)
Attempts to parse a string representation of a Double numeric value.
public : IReference<double> ParseDouble(PlatForm::String text)public Nullable<double> ParseDouble(String text)Public Function ParseDouble(text As String) As Nullable( Of double )// You can use this method in JavaScript.
Parameters
- text
- PlatForm::String String String String
The text to be parsed.
Returns
If successful, a Double that corresponds to the string representation, and otherwise null.
ParseInt(String) ParseInt(String) ParseInt(String) ParseInt(String)
Attempts to parse a string representation of an integer numeric value.
public : IReference<long> ParseInt(PlatForm::String text)public Nullable<long> ParseInt(String text)Public Function ParseInt(text As String) As Nullable( Of long )// You can use this method in JavaScript.
Parameters
- text
- PlatForm::String String String String
The text to be parsed.
Returns
If successful, an Int64 that corresponds to the string representation, and otherwise null.
ParseUInt(String) ParseUInt(String) ParseUInt(String) ParseUInt(String)
Attempts to parse a string representation of an unsigned integer numeric value.
public : IReference<ulong> ParseUInt(PlatForm::String text)public Nullable<ulong> ParseUInt(String text)Public Function ParseUInt(text As String) As Nullable( Of ulong )// You can use this method in JavaScript.
Parameters
- text
- PlatForm::String String String String
The text to be parsed.
Returns
If successful, a UInt64 that corresponds to the string representation, and otherwise null.