[BUG][POSSIBLE FIXES]
Tim Olson
tim at jumpnet.com
Mon Oct 4 13:48:06 UTC 1999
"Andrew C. Greenberg" wrote:
> Another example is
> money after an interest computation, where you might regularly ask:
>
> (...expr...) roundTo: 0.01
"roundTo:" in its current form is also very useful with Fractions. I
recently was designing a spar for a model sailplane wing that had to go
from (1 1/16) inches to 3/16 inches thick, over a span of 23 inches.
Plugging that into a linear equation in Squeak and using roundTo: 1/16
let me easily measure the cuts. No, I didn't have a metric ruler around,
or I would have used that -- but I'm glad Squeak was able to help me
out!
-- Tim Olson
More information about the Squeak-dev
mailing list
|