Click or drag to resize

FuncUaDecline Method (Decimal, String, Boolean)

Returns the correct declension of names of roubles or kopecs of the currency.

Namespace:  Stimulsoft.Report
Assembly:  Stimulsoft.Report (in Stimulsoft.Report.dll) Version: 2019.3.1.0
Syntax
public static string Decline(
	decimal value,
	string currency,
	bool cents
)

Parameters

value
Type: SystemDecimal
A value containing a currency on which the resulting value depends.
currency
Type: SystemString
The name of the currency(RUR, EUR, USD, UAH).
cents
Type: SystemBoolean
If this parameter is true then the result of the function is the name of cents in correct declension. If this parameter is false then the result of the function is the name of dollars in correct declension. Depends on the currency parameter.

Return Value

Type: String
Returns the correct declention of roubles or kopecs names of the currency.
See Also