Use the __D macro to simplify code that requires the frequent use of the _ConvertDecimal constructor:
_ConvertDecimal(char *);
You can initialize a _DecimalT class template with a _ConvertDecimal object:
_DecimalT<5,2> x = __D("123.45"); _DecimalT<DEC_DIG, DEC_PRECISION> a =__D(".0000000000000000000000000000005"); _DecimalT<6,2> b[] ={__D("1.2"), __D("2"), __D("1234.56"), _D("-3.3")}; _DecimalT<28,20> a = __D("-12.123456789");
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.