BigInteger.ToString Method

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

ToString() Returns a string representation of the number.
ToString(Int32) Returns a string representation of the integer in the specified radix base.
ToString(String) Formats the value of the current instance using the specified format.
ToString(String, IFormatProvider) Formats the value of the current instance using the specified format.

ToString

Returns a string representation of the number.
C#
public override string ToString()

Return Value

String

ToString(Int32)

Returns a string representation of the integer in the specified radix base.
C#
public string ToString(
	int radix
)

Parameters

radix  Int32
The radix (base) of the representation.

Return Value

String

Exceptions

ArgumentOutOfRangeExceptionradix is less than 2 or greater than 36.

ToString(String)

Formats the value of the current instance using the specified format.
C#
public string ToString(
	string format
)

Parameters

format  String
The String specifying the format to use.

-or-

null to use the default format.

Return Value

String
A String containing the value of the current instance in the specified format.

ToString(String, IFormatProvider)

Formats the value of the current instance using the specified format.
C#
public string ToString(
	string format,
	IFormatProvider formatProvider
)

Parameters

format  String
The String specifying the format to use.

-or-

null to use the default format.

formatProvider  IFormatProvider
The IFormatProvider to use to format the value.

-or-

null to obtain the numeric format information from the current locale setting of the operating system.

Return Value

String
A String containing the value of the current instance in the specified format.

Implements

IFormattable.ToString(String, IFormatProvider)

See Also