logo       

Re: is 0.1 a Float or a ScaledDecimal ?: msg#00148

lang.smalltalk.squeak.beginners

Subject: Re: is 0.1 a Float or a ScaledDecimal ?

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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise