Method FormatNumber
FormatNumber(double, CultureInfo)
Formats a formula result the way Word does when no numeric picture is given: an integral value loses its decimal point, everything else keeps up to fifteen significant digits.
public static string FormatNumber(double value, CultureInfo culture)
Parameters
valuedoubleThe value.
cultureCultureInfoThe formatting culture.
Returns
- string
The formatted number.
Exceptions
- ArgumentNullException
cultureis null.