C
Carramba
hi!
I am wondering if the is a way to get %f work intuitive, supose I
caclulate division of 2 double's and I wan't to get nice output, in case
it only one decimal I want to print only one.. and in case its 3 ... n I
want to print the requaret amount of decimals.
for example it's unnecesery to print that 3.0/2.0 is 1.50000 it's enought
to show that is 1.5, but in case the result is 1.22234243 I want to print
whole number upp to 10 (for example) decimals.
what is the smartes way to do it?
--
Thanx in advance!
;-)
______________________________________
I se the lightat the end, but every time I take a step it's get dim.
I am wondering if the is a way to get %f work intuitive, supose I
caclulate division of 2 double's and I wan't to get nice output, in case
it only one decimal I want to print only one.. and in case its 3 ... n I
want to print the requaret amount of decimals.
for example it's unnecesery to print that 3.0/2.0 is 1.50000 it's enought
to show that is 1.5, but in case the result is 1.22234243 I want to print
whole number upp to 10 (for example) decimals.
what is the smartes way to do it?
--
Thanx in advance!
;-)
______________________________________
I se the lightat the end, but every time I take a step it's get dim.