NFloat.ToString Method

Definition

Overloads

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()

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

Converts the numeric value of this instance to its equivalent string representation.

C#
public override string ToString();

Returns

The string representation of the value of this instance.

Applies to

.NET 9 and other versions
Product Versions
.NET 6, 7, 8, 9

ToString(IFormatProvider)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

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 object that supplies culture-specific formatting information.

Returns

The string representation of the value of this instance as specified by provider.

Applies to

.NET 9 and other versions
Product Versions
.NET 7, 8, 9

ToString(String)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

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 numeric format string.

Returns

The string representation of the value of this instance as specified by format.

Exceptions

format is invalid.

Applies to

.NET 9 and other versions
Product Versions
.NET 7, 8, 9

ToString(String, IFormatProvider)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

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 numeric format string.

provider
IFormatProvider

An object that supplies culture-specific formatting information.

Returns

The string representation of the value of this instance as specified by format and provider.

Implements

Exceptions

format is invalid.

Applies to

.NET 9 and other versions
Product Versions
.NET 7, 8, 9