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 | 0b6cf4bea8d9c676a3f344e74c55756fe6f8dd40 (patch) | |
tree | f4cc0cba080ef46bd110b008291882ebe5a19df2 /ext/bigdecimal/bigdecimal_en.html | |
parent | 3d7147bcea7323a6dd2dbfc0c02c442c7f2caa39 (diff) | |
download | ruby-0b6cf4bea8d9c676a3f344e74c55756fe6f8dd40.tar.gz |
Ambiguity of BigDecimal::limit removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/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 c4ed6b4c01..d37d13616f 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> |