ToWordsEnGb

Top  Previous  Next

Function

Parameters

Return value

ToWordsEnGb

object value

string

 

Converts the specified currency value to words in Great Britain english. There are the following differences between this function and ToWords:

 

the GBP currency is used by default;
different words used when converting milliards and trilliards.

 

Example:

 

ToWordsEnGb(121) = "One hundred and twenty-one pounds and 00 pence"

 

 

Function

Parameters

Return value

ToWordsEnGb

object value,

string currencyName

string

 

Converts the specified currency value to words in Great Britain english. The "currencyName" parameter indicates the currency. Valid values for this parameter are:

"USD"

"EUR"

"GBP"

 

Example:

 

ToWordsEnGb(1024.25, "EUR") = "One thousand and twenty-four euros and 25 cents"

 

 

Function

Parameters

Return value

ToWordsEnGb

object value,

string one,

string many

string

 

Converts the specified integer value to words in Great Britain english. The "one" parameter contains the name in singular form; the "many" parameter contains the name in plural form.

 

Example:

 

ToWordsEnGb(124, "page", "pages") = "One hundred and twenty-four pages"

ToWordsEnGb(1, "page", "pages") = "One page"