SourcePro : Currency Module User’s Guide : Decimal Classes : Conversions : Conversion from Integers and Strings
Conversion from Integers and Strings
Conversions to RWDecimal<T> objects are provided by the constructors
 
RWDecimal<T>(long int);
RWDecimal<T>(const char*);
These functions produce an exact representation of the argument. The string constructor accepts strings with embedded commas and a leading dollar sign. Negative numbers may be indicated either with a minus sign or by parentheses. A technical description of the exact grammar allowed is given in the "Technical Notes" section of this manual.