Sha256: 24bda0c80e4acd0de51d03c0239085f10db09188760fc1ada0fe83bcdeb9b6a3

Contents?: true

Size: 1.24 KB

Versions: 12

Compression:

Stored size: 1.24 KB

Contents

o:$YARD::CodeObjects::MethodObject:
@name:
round:@docstringIC:YARD::Docstring"¢Rounds <i>num</i> to the nearest integer. <code>Numeric</code>
implements this by converting itself to a
<code>Float</code> and invoking <code>Float#round</code>.
:@objectu:YARD::StubProxyNumeric#round:
@summary0:	@all"ÈRounds <i>num</i> to the nearest integer. <code>Numeric</code>
implements this by converting itself to a
<code>Float</code> and invoking <code>Float#round</code>.


@overload round
  @return [Integer]:@ref_tags[:
@tags[o:YARD::Tags::OverloadTag
;
u;Numeric#round;;;IC;	"
;
u;Numeric#round;0;
"@return [Integer];[;[o:YARD::Tags::Tag
;
0;0:@types["Integer:
@text":@tag_name"return;0:@parameters[;0:@signature"
round;"
overload:@current_file_has_commentsF:@scope:
instance;[:@docstring_extra0:@files[["numeric.c0:@namespaceu;Numeric:
@path"Numeric#round;[:@visibility:public:@source":/*
 *  call-seq:
 *     num.round    => integer
 *
 *  Rounds <i>num</i> to the nearest integer. <code>Numeric</code>
 *  implements this by converting itself to a
 *  <code>Float</code> and invoking <code>Float#round</code>.
 */

static VALUE
num_round(num)
    VALUE num;
{
    return flo_round(rb_Float(num));
}:@source_type:c

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
pry-doc-0.4.4 lib/pry-doc/core_docs_18/objects/Numeric/round_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_18/objects/Numeric/round_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_18/objects/Numeric/round_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_18/objects/Numeric/round_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_18/objects/Numeric/round_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_18/objects/Numeric/round_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_18/objects/Numeric/round_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_18/objects/Numeric/round_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_18/objects/Numeric/round_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_18/objects/Numeric/round_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_18/objects/Numeric/round_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_18/objects/Numeric/round_i.dat