Nicolas Cellier uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-nice.689.mcz
==================== Summary ====================
Name: Kernel-nice.689
Author: nice
Time: 16 May 2012, 9:32:53.987 pm
UUID: 06728744-bdfb-4e41-aa4c-39da40f860a4
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.
=============== Diff against Kernel-nice.688 ===============
Item was changed:
----- Method: Float>>floorLog: (in category 'mathematical functions') -----
floorLog: radix
+ "Answer the floor of the log base radix of the receiver.
+ The result may be off by one due to rounding errors, except in base 2."
- "Answer the floor of the log base radix of the receiver."
+ (radix = 2 and: [self > 0.0]) ifTrue: [^self exponent].
^ (self log: radix) floor
!
Nicolas Cellier uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-nice.689.mcz
==================== Summary ====================
Name: Kernel-nice.689
Author: nice
Time: 16 May 2012, 9:32:53.987 pm
UUID: 06728744-bdfb-4e41-aa4c-39da40f860a4
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.
=============== Diff against Kernel-nice.688 ===============
Item was changed:
----- Method: Float>>floorLog: (in category 'mathematical functions') -----
floorLog: radix
+ "Answer the floor of the log base radix of the receiver.
+ The result may be off by one due to rounding errors, except in base 2."
- "Answer the floor of the log base radix of the receiver."
+ (radix = 2 and: [self > 0.0]) ifTrue: [^self exponent].
^ (self log: radix) floor
!
Nicolas Cellier uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-nice.689.mcz
==================== Summary ====================
Name: Kernel-nice.689
Author: nice
Time: 16 May 2012, 9:32:53.987 pm
UUID: 06728744-bdfb-4e41-aa4c-39da40f860a4
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.
=============== Diff against Kernel-nice.688 ===============
Item was changed:
----- Method: Float>>floorLog: (in category 'mathematical functions') -----
floorLog: radix
+ "Answer the floor of the log base radix of the receiver.
+ The result may be off by one due to rounding errors, except in base 2."
- "Answer the floor of the log base radix of the receiver."
+ (radix = 2 and: [self > 0.0]) ifTrue: [^self exponent].
^ (self log: radix) floor
!
Bert Freudenberg uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-bf.475.mcz
==================== Summary ====================
Name: Collections-bf.475
Author: bf
Time: 16 May 2012, 6:50:58.033 pm
UUID: 6e9e82af-76de-45e9-8e1a-67229e47f36f
Ancestors: Collections-cmm.474
Add Stream>>print:maxDecimalPlaces:
=============== Diff against Collections-cmm.474 ===============
Item was added:
+ ----- Method: Stream>>print:maxDecimalPlaces: (in category 'printing') -----
+ print: anObject maxDecimalPlaces: placesDesired
+ "Have anObject print itself on the receiver, with at most the given number of decimal places desired."
+
+ anObject printOn: self maxDecimalPlaces: placesDesired!