OpenPetra
Free Administration Software for Non-Profits
Ict.Common.NumberToWords Class Reference

This is to write a currency value in words, eg. 123 becomes onehundred twenty-three; this has to be implemented for each language. see also Java GPL code: NumericalChameleon: http://www.jonelo.de/java/nc/ More...

Static Public Member Functions

static string AmountToWords (decimal AValue, string AMajorUnitSingular, string AMajorUnitPlural, string AMinorUnitSingular, string AMinorUnitPlural)
 Convert currency amount to words. This uses the current culture to determine the language. More...
 

Detailed Description

This is to write a currency value in words, eg. 123 becomes onehundred twenty-three; this has to be implemented for each language. see also Java GPL code: NumericalChameleon: http://www.jonelo.de/java/nc/

Member Function Documentation

◆ AmountToWords()

static string Ict.Common.NumberToWords.AmountToWords ( decimal  AValue,
string  AMajorUnitSingular,
string  AMajorUnitPlural,
string  AMinorUnitSingular,
string  AMinorUnitPlural 
)
inlinestatic

Convert currency amount to words. This uses the current culture to determine the language.

Parameters
AValueAmount as a decimal
AMajorUnitSingular
AMajorUnitPlural
AMinorUnitSingular
AMinorUnitPlural
Returns

The documentation for this class was generated from the following file: