Converts the specified value to its equivalent string representation of the currency.
Namespace:
Stimulsoft.Report
Assembly:
Stimulsoft.Report (in Stimulsoft.Report.dll) Version: 2019.3.1.0
Syntax public static string CurrToStr(
decimal value,
string currencyName = "TL/Kr.",
bool showZeroCents = true
)
Public Shared Function CurrToStr (
value As Decimal,
Optional currencyName As String = "TL/Kr.",
Optional showZeroCents As Boolean = true
) As String
Parameters
- value
- Type: SystemDecimal
A value containing a currency to convert. - currencyName (Optional)
- Type: SystemString
A currency name in the format "dollars/cents", default is "TL/Kr." - showZeroCents (Optional)
- Type: SystemBoolean
If this parameter is true then zero cents of the value will be added to the resulting string.
Return Value
Type:
StringReturns the string representation of the value with cents and the currency name.
See Also