[ENH] Number>>asScaledDecimal
David T. Lewis
lewis at mail.msen.com
Sat Nov 6 15:20:50 UTC 2004
Adds a Number>>asScaledDecimal method.
Background: I am using this in TimeZoneDatabase to select a numeric data
type for instances of PointInTime. Squeak has #asScaledDecimal: but did
not have #asScaledDecimal (no parameter required). This change set permits
the data type selector for PointInTime to be #asScaledDecimal rather
than #asFloat. It turns out by the way that ScaledDecimal works quite
nicely for representing time.
Dave
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NumberAsScaledDecimal-dtl.cs.gz
Type: application/x-gunzip
Size: 522 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20041106/45f4a691/NumberAsScaledDecimal-dtl.cs.bin
More information about the Squeak-dev
mailing list
|