You are here: Symbol Reference > Stimulsoft.Report Namespace > Func Class > Func Classes > En Class > En Methods > CurrToStr Method > CurrToStr Method (decimal, bool, bool, string, string)
Stimulsoft Reports Class Reference
ContentsIndexHome
PreviousUpNext
Func.En.CurrToStr Method (decimal, bool, bool, string, string)

Converts the specified value to its equivalent string representation.

Syntax
C++
C#
Visual Basic
public: string CurrToStr( decimal value, bool uppercase, bool showCents, string dollars, string cents );
Parameters
Parameters 
Description 
value 
A value containing a currency to convert. 
uppercase 
If this parameter is true then the first symbol of the resulting string will be in the uppercase. 
showCents 
If this parameter is true then cents of the value will be added to the resulting string. 
dollars 
A string in format "dollar/dollars" ("pound/pounds"), etc. 
cents 
A string in format "cent/cents" ("penny/pence"), etc. 
Returns

Returns the string representation of the decimal value with or without cents with the first symbol in the uppercase or not. Names of cents and dollars of the currency is to be specified in the dollars and cents parameters.

Made with Doc-O-Matic.
What do you think about this topic? Send feedback!
Copyright (c) 2017. All rights reserved.