Table of Contents

Method FormatNumber

Namespace
DocWright.Dom.Fields
Assembly
DocWright.Dom.dll

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

value double

The value.

culture CultureInfo

The formatting culture.

Returns

string

The formatted number.

Exceptions

ArgumentNullException

culture is null.