mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
COMP_MODE_ROUNDUP -> COMP_MODE_ROUND
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f802b75575
commit
28f3cb3fd8
3 changed files with 15 additions and 8 deletions
|
|
@ -161,14 +161,14 @@ f = BigDecimal::mode(BigDecimal::COMP_MODE,flag)
|
|||
where flag must be one of:
|
||||
<TABLE>
|
||||
<TR><TD>COMP_MODE_TRUNCATE</TD><TD>truncate</TD></TR>
|
||||
<TR><TD>COMP_MODE_ROUNDUP</TD><TD>roundup,default</TD></TR>
|
||||
<TR><TD>COMP_MODE_ROUND</TD><TD>round,default</TD></TR>
|
||||
<TR><TD>COMP_MODE_CEIL</TD><TD>ceil</TD></TR>
|
||||
<TR><TD>COMP_MODE_FLOOR</TD><TD>floor</TD></TR>
|
||||
<TR><TD>COMP_MODE_EVEN</TD><TD>Banker's rounding</TD></TR>
|
||||
</TABLE>
|
||||
nil is returned if any argument is illegal.<BR>
|
||||
The digit location for rounding operation can not be specified by mode method,
|
||||
use truncate/roundup/ceil/floor mthods for each instance instead.
|
||||
use truncate/round/ceil/floor mthods for each instance instead.
|
||||
|
||||
</BLOCKQUOTE>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue