Mono Class Library: System.Double Overview | Members

System.Double.ToString Method

Returns a string representation of the value of the current instance.

public string ToString (IFormatProvider provider)

Parameters

provider
A IFormatProvider that supplies a System.Globalization.NumberFormatInfo containing culture-specific formatting information.

Returns

A string representation of the current instance formatted using the general format specifier, ("G"). The string takes into account the formatting information in the System.Globalization.NumberFormatInfo instance supplied by provider.

Remarks

This version of double.ToString is equivalent to double.ToString (null , provider ).

If provider is null or a System.Globalization.NumberFormatInfo cannot be obtained from provider, the formatting information for the current system culture is used.

Note: The general format specifier formats the number in either fixed-point or exponential notation form. For a detailed description of the general format, see the IFormattable interface.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0