Method FormatNumeric
FormatNumeric(double, string, CultureInfo)
Formats a number through a Word numeric picture such as #,##0.00 or
\(#,##0.00;(\)#,##0.00);'-'.
public static string FormatNumeric(double value, string picture, CultureInfo culture)
Parameters
valuedoubleThe value.
picturestringThe picture.
cultureCultureInfoThe formatting culture.
Returns
- string
The formatted number.
Exceptions
- ArgumentNullException
pictureorcultureis null.