From 46ba2d5bf49885cb0d0ca910a2b6b080b9cb21a8 Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 21 Dec 2016 05:26:35 +0000 Subject: [DOC] itemize values for half option of Float#round. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- numeric.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/numeric.c b/numeric.c index d68c54493f..3c380cb76b 100644 --- a/numeric.c +++ b/numeric.c @@ -2224,11 +2224,12 @@ rb_int_truncate(VALUE num, int ndigits) * 34567.89.round(3) #=> 34567.89 * * If half: optional keyword is given, just-half number - * will be rounded according to that value. If it is - * :up or +nil+, the result will be rounded up, or it is - * :even, the result will be rounded to nearest even - * number, or it is :down, the result will be rounded - * down. + * will be rounded according to that value. + * Supported values for this keyword are follows. + * + * * :up or +nil+: the result will be rounded away from zero + * * :even: the result will be rounded to nearest even number + * * :down: the result will be rounded close to zero */ static VALUE -- cgit v1.2.3