ruby-changes:17131
From: naruse <ko1@a...>
Date: Sun, 29 Aug 2010 09:42:12 +0900 (JST)
Subject: [ruby-changes:17131] Ruby:r29131 (trunk): Add links about floating point.
naruse 2010-08-29 09:42:05 +0900 (Sun, 29 Aug 2010) New Revision: 29131 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29131 Log: Add links about floating point. [ruby-core:31849] Modified files: trunk/numeric.c Index: numeric.c =================================================================== --- numeric.c (revision 29130) +++ numeric.c (revision 29131) @@ -533,6 +533,13 @@ * <code>Float</code> objects represent inexact real numbers using * the native architecture's double-precision floating point * representation. + * + * Floating point has a different arithmetic and is a inexact number. + * So you should know its esoteric system. see following: + * + * - http://docs.sun.com/source/806-3568/ncg_goldberg.html + * - http://wiki.github.com/rdp/ruby_tutorials_core/ruby-talk-faq#floats_imprecise + * - http://en.wikipedia.org/wiki/Floating_point#Accuracy_problems */ VALUE -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/