Computers generally do what you tell them, not what you mean. 0.1 does have a different meaning than 1/10 in computing land. If you mean a fraction, write a fraction. If you mean a float, write a dotted decimal. Smalltalk even has means to write fractions as decimals (0.1s1). So simply choose what you mean and write that in the language your computer understands.
I agree but I often forget I'm in computing land with Smalltalk ;-) !
Thanks Bert