[squeak-dev] The Trunk: Kernel-nice.618.mcz
Levente Uzonyi
leves at elte.hu
Thu Sep 8 20:47:14 UTC 2011
On Thu, 8 Sep 2011, commits at source.squeak.org wrote:
> 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
I also prepared this change as you suggested, but got distracted by
Eliot's changes and some bugs in a production system...
Thanks,
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 Squeak-dev
mailing list
|