need quick help asap: printf question
Posted on 2003-03-31
I tried to print out a formatted data.
say, in the program i got these two data:
I want to print out the formatted amount according to the gDecimal number i get(I would only know gDecimal at runtime).
how do i print out the number of decimals according to gDecimal number?
say, if gDecimal =2, then amount should be printed out as 208.40
if gDecimal =3, then amount should be printed out as 208.400
if gDecimal =4, then amount should be printed out as 208.4003