Sha256: 6e6d3d60e66835089656e760a139ce7dd08a8a26e64b737867c9e386954a0497
Contents?: true
Size: 1.54 KB
Versions: 12
Compression:
Stored size: 1.54 KB
Contents
o:$YARD::CodeObjects::MethodObject: @name:to_int:@docstringIC:YARD::Docstring"=Returns <i>flt</i> truncated to an <code>Integer</code>. :@objectu:YARD::StubProxyFloat#to_int: @summary0: @all"�Returns <i>flt</i> truncated to an <code>Integer</code>. @overload to_i @return [Integer] @overload to_int @return [Integer] @overload truncate @return [Integer]:@ref_tags[: @tags[o:YARD::Tags::OverloadTag ; u;Float#to_int;: to_i;IC; " ; u;Float#to_int;0; "@return [Integer];[;[o:YARD::Tags::Tag ; 0;0:@types["Integer: @text":@tag_name"return;0:@parameters[;0:@signature" to_i;" overloado; ; u;Float#to_int;;;IC; " ; u;Float#to_int;0; "@return [Integer];[;[o; ; 0;0;["Integer;";"return;0;[;0;"to_int;" overloado; ; u;Float#to_int;: truncate;IC; " ; u;Float#to_int;0; "@return [Integer];[;[o; ; 0;0;["Integer;";"return;0;[;0;" truncate;" overload:@current_file_has_commentsF:@scope: instance;[:@docstring_extra0:@files[["numeric.c0:@namespaceu; Float: @path"Float#to_int;[:@visibility:public:@source"�/* * call-seq: * flt.to_i => integer * flt.to_int => integer * flt.truncate => integer * * Returns <i>flt</i> truncated to an <code>Integer</code>. */ static VALUE flo_truncate(num) VALUE num; { double f = RFLOAT(num)->value; long val; if (f > 0.0) f = floor(f); if (f < 0.0) f = ceil(f); if (!FIXABLE(f)) { return rb_dbl2big(f); } val = f; return LONG2FIX(val); }:@source_type:c
Version data entries
12 entries across 12 versions & 2 rubygems