"If you have an infinite amount of time you can get a better answer"
Not quite, you would also need a computer with an infinite number of bits. That is to say this is a quantisation problem not a time one.
The conversion error is at the limit of the machine's precision, so it really doesn't matter whether you were able to express 0.1 exactly in BCD, when there is an infinite number of cases that BCD doesn't help anyway.
You can calculate using scaled integers to any arbitrary precision, as long as the function can be reduced to a converging series. About 20 years ago I was teaching a BASIC programming class in which we calculated pi and e to 100000 places using integer arithmetic.
Took some time to calculate though
Good Luck
johnwm
________________________________________________________
To get the best from these forums read faq731-376 before posting