C# Class Dev2.Data.Operations.Dev2NumberFormatter

Inheritance: IDev2NumberFormatter
ファイルを表示 Open project: Warewolf-ESB/Warewolf Class Usage Examples

Public Methods

Method Description
Format ( FormatNumberTO formatNumberTO ) : string

Formats a number.

Private Methods

Method Description
AdjustDecimalPlaces ( string numberString, bool adjustDecimalPlaces, int decimalPlacesToShow ) : string

Mathamatically adjust the decimal places.

BuildRoundingExpression ( FormatNumberTO formatNumberTO ) : string
FormatNumber ( decimal number, bool adjustDecimalPlaces, int decimalPlacesToShow ) : string

Formats a number into a string with the specified number of decimal places.

Parse ( string numberString ) : decimal
Round ( FormatNumberTO formatNumberTO ) : string

Method Details

Format() public method

Formats a number.
formatNumberTO
public Format ( FormatNumberTO formatNumberTO ) : string
formatNumberTO Dev2.Data.TO.FormatNumberTO The information on how to format the number.
return string