[Pkg] The Trunk: Kernel-nice.618.mcz
commits at source.squeak.org
commits at source.squeak.org
Thu Sep 8 20:27:00 UTC 2011
Nicolas Cellier uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-nice.618.mcz
==================== Summary ====================
Name: Kernel-nice.618
Author: nice
Time: 8 September 2011, 10:26:12.614 pm
UUID: 5c9061ca-b336-460a-bd15-2dfb6ecd2d0c
Ancestors: Kernel-nice.617
Simplify Integer>>printTruncatedOn:showingDecimalPlaces: as suggested by Levente
=============== Diff against Kernel-nice.617 ===============
Item was changed:
----- Method: Integer>>printTruncatedOn:showingDecimalPlaces: (in category 'printing') -----
printTruncatedOn: aStream showingDecimalPlaces: placesDesired
"Print a representation of the receiver on aStream in decimal notation with prescribed number of places after decimal separator.
Print as if the receiver was truncated to requested precision."
self printOn: aStream.
placesDesired > 0
ifTrue:
[aStream nextPut: $..
+ aStream next: placesDesired put: $0]!
- aStream nextPutAll: (String new: placesDesired withAll: (Character digitValue: 0))]!
More information about the Packages
mailing list