ToWordsRu

Top  Previous  Next

Function

Parameters

Return value

ToWordsRu

object value

string

 

Converts the specified currency value to words in russian.

 

Example:

 

ToWordsRu(1024.25) = "Одна тысяча двадцать четыре рубля 25 копеек"

 

 

Function

Parameters

Return value

ToWordsRu

object value,

string currencyName

string

 

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

"RUR"

"UAH"

"USD"

"EUR"

 

Example:

 

ToWordsRu(1024.25, "EUR") = "Одна тысяча двадцать четыре евро 25 евроцентов"

 

 

Function

Parameters

Return value

ToWordsRu

object value,

bool male,

string one,

string two,

string many

string

 

Converts the specified integer value to words in russian. The "male" parameter indicates the gender of the name. The "one", "two" and "five" parameters contain a form of the name used with "1",  "2" and "5" numbers.

 

Example:

 

// the "страница" word is of female gender, male = false

ToWordsRu(122, false, "страница", "страницы", "страниц") = 

"Сто двадцать две страницы"

 

// the "лист" word is of male gender, male = true

ToWordsRu(122, true, "лист", "листа", "листов") = 

"Сто двадцать два листа"