|
Re: is 0.1 a Float or a ScaledDecimal ?: msg#00148lang.smalltalk.squeak.beginners
> > 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> |
|---|---|---|
| Previous by Date: | Re: is 0.1 a Float or a ScaledDecimal ?, Bert Freudenberg |
|---|---|
| Next by Date: | RE: Named Primitives et al, david.briant |
| Previous by Thread: | Re: is 0.1 a Float or a ScaledDecimal ?, Bert Freudenberg |
| Next by Thread: | Re: is 0.1 a Float or a ScaledDecimal ?, Louis LaBrunda |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |