Table of Contents

Method FormatNumeric

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

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

value double

The value.

picture string

The picture.

culture CultureInfo

The formatting culture.

Returns

string

The formatted number.

Exceptions

ArgumentNullException

picture or culture is null.