Imaginary<T>.ToString Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

ToString() Converts the numeric value of this instance to its equivalent string representation.
ToString(IFormatProvider) Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information.
ToString(String) Converts the numeric value of this instance to its equivalent string representation using the specified format.
ToString(String, IFormatProvider) Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information.

ToString

Converts the numeric value of this instance to its equivalent string representation.
C#
public override string ToString()

Return Value

String
The string representation of the value of this instance.

ToString(IFormatProvider)

Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information.
C#
public string ToString(
	IFormatProvider provider
)

Parameters

provider  IFormatProvider
An IFormatProvider that supplies culture-specific formatting information.

Return Value

String
The string representation of the value of this instance.

ToString(String)

Converts the numeric value of this instance to its equivalent string representation using the specified format.
C#
public string ToString(
	string? format
)

Parameters

format  String
A format string.

Return Value

String
The string representation of the value of this instance.

Exceptions

FormatException

format is invalid.

ToString(String, IFormatProvider)

Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information.
C#
public string ToString(
	string? format,
	IFormatProvider? provider
)

Parameters

format  String
A format string.
provider  IFormatProvider
An IFormatProvider that supplies culture-specific formatting information.

Return Value

String
The string representation of the value of this instance.

Exceptions

FormatException

format is invalid.

See Also