-(p1) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
static VALUE
nurat_sub(VALUE self, VALUE other)
    switch (TYPE(other)) {
      case T_FIXNUM:
      case T_BIGNUM:

            return f_addsub(self,
                            dat->num, dat->den,
                            other, ONE, '-');
      case T_FLOAT:
        return f_sub(f_to_f(self), other);
      case T_RATIONAL:
            get_dat2(self, other);

            return f_addsub(self,
                            adat->num, adat->den,
                            bdat->num, bdat->den, '-');
        return rb_num_coerce_bin(self, other, '-');
Register or log in to add new notes.