diff options
| author | shigek <shigek@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-13 14:33:31 +0000 |
|---|---|---|
| committer | shigek <shigek@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-13 14:33:31 +0000 |
| commit | bee716d18f4226795f2f66054f8e3b60b4ec2ef8 (patch) | |
| tree | f4cc0cba080ef46bd110b008291882ebe5a19df2 /ext/bigdecimal/bigdecimal_en.html | |
| parent | 9de2f6ef9389bc1d30b469a592e333ed1b61fe74 (diff) | |
| download | ruby-bee716d18f4226795f2f66054f8e3b60b4ec2ef8.tar.gz ruby-bee716d18f4226795f2f66054f8e3b60b4ec2ef8.tar.xz ruby-bee716d18f4226795f2f66054f8e3b60b4ec2ef8.zip | |
Ambiguity of BigDecimal::limit removed.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/bigdecimal/bigdecimal_en.html')
| -rw-r--r-- | ext/bigdecimal/bigdecimal_en.html | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ext/bigdecimal/bigdecimal_en.html b/ext/bigdecimal/bigdecimal_en.html index c4ed6b4c0..d37d13616 100644 --- a/ext/bigdecimal/bigdecimal_en.html +++ b/ext/bigdecimal/bigdecimal_en.html @@ -118,7 +118,10 @@ but the resulting digits obtained may differ in future version. </BLOCKQUOTE> <LI><B>mode</B></LI><BLOCKQUOTE> -mode method controls BigDecimal computation.Following usage are defined.<BR> +f = BigDecimal.mode(s[,v])<BR> +mode method controls BigDecimal computation. If the second argument is not given or is nil,then the value +of current setting is returned. +Following usage are defined.<BR> <P><B>[EXCEPTION control]</B><P> Actions when computation results NaN or Infinity can be defined as follows. <P> @@ -175,13 +178,12 @@ use truncate/round/ceil/floor/add/sub/mult/div mthods for each instance instead. </BLOCKQUOTE> <LI><B>limit[(n)]</B></LI><BLOCKQUOTE> -Limits the maximum digits that the newly created BigDecimal objects can hold -never exceed n+? (Currently,? can not be determined beforehand,but not so big). +Limits the maximum digits that the newly created BigDecimal objects can hold never exceed n. This means the rounding operation specified by BigDecimal.mode is performed if necessary. -limit returns maximum value before set. +limit returns the value before set if n is nil or is not specified. Zero,the default value,means no upper limit.<BR> -Except for zero,the limit has more priority than instance methods such as truncate,round,ceil,floor,add,sub,mult,and div. <BR> +The limit has no more priority than instance methods such as truncate,round,ceil,floor,add,sub,mult,and div. <BR> mf = BigDecimal::limit(n)<BR> </BLOCKQUOTE> |
