[Newbies] is 0.1 a Float or a ScaledDecimal ?

cdrick cdrick65 at gmail.com
Wed Feb 20 13:48:54 UTC 2008


>
> 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


More information about the Beginners mailing list