Codota Logo
RubyBignum.opMulOther
Code IndexAdd Codota to your IDE (free)

How to use
opMulOther
method
in
org.jruby.RubyBignum

Best Java code snippets using org.jruby.RubyBignum.opMulOther (Showing top 4 results out of 315)

  • Common ways to obtain RubyBignum
private void myMethod () {
RubyBignum r =
  • Codota IconRubyRandom.RandomType rubyRandomRandomType;rubyRandomRandomType.getState()
  • Codota IconRuby runtime;String value;new RubyBignum(runtime, new BigInteger(value))
  • Codota IconRuby runtime;RubyBignum.newBignum(runtime, value)
  • Smart code suggestions by Codota
}
origin: com.ning.billing/killbill-osgi-bundles-jruby

@JRubyMethod(name = "*", required = 1, compat = RUBY1_9)
public IRubyObject op_mul19(ThreadContext context, IRubyObject other) {
  Ruby runtime = context.runtime;
  BigInteger result;
  if (other instanceof RubyFixnum) {
    return bignorm(runtime, value.multiply(fix2big(((RubyFixnum) other))));
  } else if (other instanceof RubyBignum) {
    return bignorm(runtime, value.multiply(((RubyBignum)other).value));
  } else return opMulOther(context, other);
}
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

@JRubyMethod(name = "*", required = 1, compat = RUBY1_9)
public IRubyObject op_mul19(ThreadContext context, IRubyObject other) {
  Ruby runtime = context.runtime;
  BigInteger result;
  if (other instanceof RubyFixnum) {
    return bignorm(runtime, value.multiply(fix2big(((RubyFixnum) other))));
  } else if (other instanceof RubyBignum) {
    return bignorm(runtime, value.multiply(((RubyBignum)other).value));
  } else return opMulOther(context, other);
}
origin: com.ning.billing/killbill-osgi-bundles-jruby

/** rb_big_mul
 *
 */
@JRubyMethod(name = "*", required = 1)
public IRubyObject op_mul(ThreadContext context, IRubyObject other) {
  Ruby runtime = context.runtime;
  if (other instanceof RubyFixnum) {
    BigInteger result = value.multiply(fix2big(((RubyFixnum) other)));
    return result.signum() == 0 ? RubyFixnum.zero(runtime) : new RubyBignum(runtime, result);
  }
  if (other instanceof RubyBignum) {
    BigInteger result = value.multiply(((RubyBignum)other).value);
    return result.signum() == 0 ? RubyFixnum.zero(runtime) : new RubyBignum(runtime, result);
  } else return opMulOther(context, other);
}
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

/** rb_big_mul
 *
 */
@JRubyMethod(name = "*", required = 1)
public IRubyObject op_mul(ThreadContext context, IRubyObject other) {
  Ruby runtime = context.runtime;
  if (other instanceof RubyFixnum) {
    BigInteger result = value.multiply(fix2big(((RubyFixnum) other)));
    return result.signum() == 0 ? RubyFixnum.zero(runtime) : new RubyBignum(runtime, result);
  }
  if (other instanceof RubyBignum) {
    BigInteger result = value.multiply(((RubyBignum)other).value);
    return result.signum() == 0 ? RubyFixnum.zero(runtime) : new RubyBignum(runtime, result);
  } else return opMulOther(context, other);
}
org.jrubyRubyBignumopMulOther

Popular methods of RubyBignum

  • newBignum
  • getLongValue
  • getValue
    Getter for property value.
  • <init>
  • addFloat
  • addOther
  • big2dbl
    rb_big2dbl
  • big2long
    rb_big2long
  • bignorm
    rb_big_norm
  • checkShiftDown
  • coerceBin
  • coerceCmp
  • coerceBin,
  • coerceCmp,
  • compareTo,
  • convertToDouble,
  • createBignumClass,
  • dbl_cmp,
  • divmod,
  • even_p,
  • fix2big,
  • getBigIntegerValue

Popular in Java

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • orElseThrow (Optional)
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now