diff options
author | shigek <shigek@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-20 04:13:30 +0000 |
---|---|---|
committer | shigek <shigek@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-20 04:13:30 +0000 |
commit | 611bb8f5a8771b618b8e81f08438fb770a8c2872 (patch) | |
tree | 016463f47efd2062770956cb79fb514e8337ca7a /ext/bigdecimal/bigdecimal_en.html | |
parent | ebe96d582e3bf048637663d6c51524bd40c3d3eb (diff) | |
download | ruby-611bb8f5a8771b618b8e81f08438fb770a8c2872.tar.gz |
Wrong descriptions,pointed out by Bret Jolly,in the documents changed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/bigdecimal/bigdecimal_en.html')
-rw-r--r-- | ext/bigdecimal/bigdecimal_en.html | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ext/bigdecimal/bigdecimal_en.html b/ext/bigdecimal/bigdecimal_en.html index 02c88df43e..c2b86faef6 100644 --- a/ext/bigdecimal/bigdecimal_en.html +++ b/ext/bigdecimal/bigdecimal_en.html @@ -379,7 +379,7 @@ after every n digits for readability. <CODE><PRE> BigDecimal("0.1234567890123456789").to_s(10) # ==> "0.1234567890 123456789E0" </PRE></CODE> -n can be an string representing a positive integer number. +n can be a string representing a positive integer number. <CODE><PRE> BigDecimal("0.1234567890123456789").to_s("10") # ==> "0.1234567890 123456789E0" </PRE></CODE> @@ -678,10 +678,9 @@ structure. </DL> <H3>Disadvantage of decimal representation</H3> -Advantages stated so far can also be disadvantages if the input from outside is - represented in binary. -Translation error from decimal to binary or vice versa is inevitable. -So,translation from Float(binary) to BigDecimal(decimal) is not alway done exactly. +Because most computers have no internal decimal representaion. +Once you use BigDecimal,you need to keep using it without +considering computation cost if exact computation is required. <H4>Which is the first input?</H4> Because most people uses decimal notatin for numeric data representation, |