[squeak-dev] Some strange behavior
Bert Freudenberg
bert at freudenbergs.de
Thu Oct 28 20:40:01 UTC 2010
On 28.10.2010, at 22:30, Hans-Martin Mosner wrote:
> The fact that Squeak prints 6 * 0.2 as 1.2 and not as 1.2000000000000002
> is a result of the particular algorithm that is being used for printing
> floats as decimal numbers.
(6 * 0.2) storeString
==> '1.2000000000000002'
- Bert -
More information about the Squeak-dev
mailing list
|