BigNumber.Parse Method
Definition
Namespace: Corvus.Numerics
Assembly: Corvus.Text.Json.dll
Overloads
| Method | Description |
|---|---|
| Parse(string, IFormatProvider) | Parses a string into a BigNumber. |
| Parse(ReadOnlySpan<char>, NumberStyles, IFormatProvider) | Parses a span of characters into a BigNumber. |
| Parse(ReadOnlySpan<byte>, NumberStyles, IFormatProvider) | Parses UTF-8 bytes into a BigNumber. |
Parse(string, IFormatProvider)
Source: BigNumber.cs
Parses a string into a BigNumber.
public static BigNumber Parse(string s, IFormatProvider provider)
Parameters
| Name | Type | Description |
|---|---|---|
s |
string |
The string to parse. |
provider |
IFormatProvider |
Format provider. (optional) |
Returns
The parsed number.
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
Parse(ReadOnlySpan<char>, NumberStyles, IFormatProvider)
Source: BigNumber.cs
Parses a span of characters into a BigNumber.
public static BigNumber Parse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider provider)
Parameters
| Name | Type | Description |
|---|---|---|
s |
ReadOnlySpan<char> |
The span to parse. |
style |
NumberStyles |
Number styles. (optional) |
provider |
IFormatProvider |
Format provider. (optional) |
Returns
The parsed number.
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
Parse(ReadOnlySpan<byte>, NumberStyles, IFormatProvider)
Source: BigNumber.cs
Parses UTF-8 bytes into a BigNumber.
public static BigNumber Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider provider)
Parameters
| Name | Type | Description |
|---|---|---|
utf8Text |
ReadOnlySpan<byte> |
The UTF-8 bytes to parse. |
style |
NumberStyles |
Number styles. (optional) |
provider |
IFormatProvider |
Format provider. (optional) |
Returns
The parsed number.
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests.
Open an issue