summaryrefslogtreecommitdiff log msg author committer range
diff options
 context: 12345678910152025303540 space: includeignore mode: unifiedssdiffstat only
author committer shigek 2003-08-29 13:37:44 +0000 shigek 2003-08-29 13:37:44 +0000 da84ad63ee95265dfbdd51c370cdfe5f91e58d59 (patch) ec80a3e38f19d317134ba58358572371596f6943 /ext/bigdecimal/bigdecimal_en.html 8ab241075728792ed56ef7371e424bec9ee187aa (diff)
The 2nd arg for add,sub,mult, and div is 0, then result will be same as +,-,*,/ respectively.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/bigdecimal/bigdecimal_en.html')
-rw-r--r--ext/bigdecimal/bigdecimal_en.html19
1 files changed, 11 insertions, 8 deletions
 diff --git a/ext/bigdecimal/bigdecimal_en.html b/ext/bigdecimal/bigdecimal_en.htmlindex 1197be15b9..7f6faa39b9 100644--- a/ext/bigdecimal/bigdecimal_en.html+++ b/ext/bigdecimal/bigdecimal_en.html@@ -238,30 +238,33 @@ For the resulting number of significant digits of c,see Resultin
-c = a.add(b,n) performs c = a + b.+c = a.add(b,n) performs c = a + b.
If n is less than the actual significant digits of a + b,-then c is rounded properly according to the BigDecimal.limit.-+then c is rounded properly according to the BigDecimal.limit.
+If n is zero,then the result is the same as +'s.
• sub(b,n)
• c = a.sub(b,n)
-c = a.sub(b,n) performs c = a - b.+c = a.sub(b,n) performs c = a - b.
If n is less than the actual significant digits of a - b,-then c is rounded properly according to the BigDecimal.limit.+then c is rounded properly according to the BigDecimal.limit.
+If n is zero,then the result is the same as -'s.
• mult(b,n)
• c = a.mult(b,n)
-c = a.mult(b,n) performs c = a * b.+c = a.mult(b,n) performs c = a * b.
If n is less than the actual significant digits of a * b,-then c is rounded properly according to the BigDecimal.limit.+then c is rounded properly according to the BigDecimal.limit.
+If n is zero,then the result is the same as *'s.
• div(b[,n])
• c = a.div(b,n)
-c = a.div(b,n) performs c = a / b.+c = a.div(b,n) performs c = a / b.
If n is less than the actual significant digits of a / b, then c is rounded properly according to the BigDecimal.limit.
+If n is zero,then the result is the same as /'s. If n is not given,then the result will be an integer(BigDecimal) like Float#div.