Sha256: 87c99e39790fe287765c0bc5044c27b00d899f39f6b9fe2305bc7b928b9f2427

Contents?: true

Size: 1.35 KB

Versions: 12

Compression:

Stored size: 1.35 KB

Contents

o:$YARD::CodeObjects::MethodObject:
@name:/:@docstringIC:YARD::Docstring"bReturns a new float which is the result of dividing
<code>float</code> by <code>other</code>.
:@objectu:YARD::StubProxyFloat#/:
@summary0:	@all"„Returns a new float which is the result of dividing
<code>float</code> by <code>other</code>.


@overload /(other)
  @return [Float]:@ref_tags[:
@tags[o:YARD::Tags::OverloadTag
;
u;Float#/;;;IC;	"
;
u;Float#/;0;
"@return [Float];[;[o:YARD::Tags::Tag
;
0;0:@types["
Float:
@text":@tag_name"return;0:@parameters[[:
other0;0:@signature"
/(other);"
overload:@current_file_has_commentsF:@scope:
instance;[:@docstring_extra0:@files[["numeric.c0:@namespaceu;
Float:
@path"Float#/;[:@visibility:public:@source"G/*
 * call-seq:
 *   float / other   => float
 *
 * Returns a new float which is the result of dividing
 * <code>float</code> by <code>other</code>.
 */

static VALUE
flo_div(x, y)
    VALUE x, y;
{
    long f_y;
    double d;

    switch (TYPE(y)) {
      case T_FIXNUM:
    f_y = FIX2LONG(y);
    return rb_float_new(RFLOAT(x)->value / (double)f_y);
      case T_BIGNUM:
    d = rb_big2dbl(y);
    return rb_float_new(RFLOAT(x)->value / d);
      case T_FLOAT:
    return rb_float_new(RFLOAT(x)->value / RFLOAT(y)->value);
      default:
    return rb_num_coerce_bin(x, y);
    }
}:@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/Float/_2F_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_18/objects/Float/_2F_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_18/objects/Float/_2F_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_18/objects/Float/_2F_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_18/objects/Float/_2F_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_18/objects/Float/_2F_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_18/objects/Float/_2F_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_18/objects/Float/_2F_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_18/objects/Float/_2F_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_18/objects/Float/_2F_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_18/objects/Float/_2F_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_18/objects/Float/_2F_i.dat