7 / 8.0 roundTo 0.01 = 0.88 Aha! Thanks!But:100 * (1.05 raisedTo: 10) roundTo: 0.01 162.89000000000001"162.88946267774418" "unrounded"100 * (1.05 raisedTo: 15) roundTo: 0.01 207.89000000000001"207.8928179411367" "unrounded"Bug, or me again :-)MacBook Pro (Retina, 15-inch, Early 2013) System Version: OS X 10.10.2 (14C109)Image-----/Users/chuck/Downloads/Squeak-4.5-All-In-One/Squeak-4.5-All-in-One.app/Contents/Resources/Squeak4.5-13680.imageSqueak4.5latest update: #13680Current Change Set: Unnamed1Image format 6505 (32 bit)Virtual Machine---------------/Users/chuck/Downloads/Squeak-4.5-All-In-One/Squeak-4.5-All-in-One.app/Contents/MacOS/SqueakCroquet Closure Cog VM [CoInterpreter VMMaker.oscog-eem.331] 4.5Mac OS X built on Aug 22 2013 10:08:05 Compiler: 4.2.1 (Apple Inc. build 5666) (dot 3)platform sources revision VM: r2776 http://www.squeakvm.org/svn/squeak/branches/Cog Plugins: r2545 http://squeakvm.org/svn/squeak/trunk/platforms/Cross/pluginsCoInterpreter VMMaker.oscog-eem.331 uuid: 37d2e4b0-2f37-4e2d-8313-c63637785e59 Aug 22 2013StackToRegisterMappingCogit VMMaker.oscog-eem.333 uuid: 84da9cb8-7f30-4cb7-b4fb-239a11f63b54 Aug 22 2013On Wed, Feb 4, 2015 at 2:59 AM, Ben Coman <btc@openinworld.com> wrote:In the interest of teaching how to fish, look at the senders of #roundTo: to find its usage.I'll post a full answer tomorrow if you don't beat me to it.cheers -benOn Wed, Feb 4, 2015 at 4:34 PM, Chuck Hipschman <ckhipschman@gmail.com> wrote:_______________________________________________7 / 8.0 roundTo: 2 I expect 0.88, I get 0What am I doing wrong, or this a bug?TIAChuck
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners
_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners
_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners