Changes to Trunk (
http://source.squeak.org/trunk.html) in the last 24 hours:
http://lists.squeakfoundation.org/pipermail/packages/2012-May/005334.htmlName: Kernel-nice.688
Ancestors: Kernel-eem.687
Provides a naive #printShowingMaxDecimalPlaces: and #printOn:maxDecimalPlaces:
To be tested...
{
0.7 printShowingMaxDecimalPlaces: 3.
2.0001 printShowingMaxDecimalPlaces: 3.
-1.9994 printShowingMaxDecimalPlaces: 3.
}
=============================================
http://lists.squeakfoundation.org/pipermail/packages/2012-May/005335.htmlName: Collections-bf.475
Ancestors: Collections-cmm.474
Add Stream>>print:maxDecimalPlaces:
=============================================
http://lists.squeakfoundation.org/pipermail/packages/2012-May/005336.htmlName: Graphics-bf.193
Ancestors: Graphics-nice.192
Fix Color printing to show at most 3 decimal places
=============================================
http://lists.squeakfoundation.org/pipermail/packages/2012-May/005337.htmlName: KernelTests-nice.219
Ancestors: KernelTests-nice.218
Add a test to demonstrate that despite being internally represented in base 2, a Float cannot compute floorLog: 2 exactly if it only rely on inexact log: implementation.
Indeed, an error on math functions values up to 3 ulp is compliant with IEEE 754 floating point standard.
=============================================
http://lists.squeakfoundation.org/pipermail/packages/2012-May/005338.htmlName: Kernel-nice.689
Ancestors: Kernel-nice.688
Let #floorLog: be exact in the base used by underlying Float implementation (currently 2 is hardcoded because Float class>>base was not implemented).
In other cases, warn about possible rounding errors.
=============================================