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

How to use
divmod
method
in
org.jruby.RubyBignum

Best Java code snippets using org.jruby.RubyBignum.divmod (Showing top 6 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 = "divmod", required = 1, compat = RUBY1_9)
public IRubyObject divmod19(ThreadContext context, IRubyObject other) {
  if (!other.isNil() && other instanceof RubyFloat
      && ((RubyFloat)other).getDoubleValue() == 0) {
    throw context.runtime.newZeroDivisionError();
  }
  return divmod(context, other);
}
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

@JRubyMethod(name = "divmod", required = 1, compat = RUBY1_9)
public IRubyObject divmod19(ThreadContext context, IRubyObject other) {
  if (!other.isNil() && other instanceof RubyFloat
      && ((RubyFloat)other).getDoubleValue() == 0) {
    throw context.runtime.newZeroDivisionError();
  }
  return divmod(context, other);
}
origin: org.jruby/jruby-complete

while (from instanceof RubyBignum) {
  RubyBignum bignum = (RubyBignum)from;
  RubyArray ary = (RubyArray)bignum.divmod(context, big128);
  buf.append((byte)(RubyNumeric.fix2int(ary.at(RubyFixnum.one(context.runtime))) | 0x80) & 0xff);
  from = ary.at(RubyFixnum.zero(context.runtime));
origin: org.jruby/jruby-core

while (from instanceof RubyBignum) {
  RubyBignum bignum = (RubyBignum)from;
  RubyArray ary = (RubyArray)bignum.divmod(context, big128);
  buf.append((byte)(RubyNumeric.fix2int(ary.at(RubyFixnum.one(context.runtime))) | 0x80) & 0xff);
  from = ary.at(RubyFixnum.zero(context.runtime));
origin: com.ning.billing/killbill-osgi-bundles-jruby

while (from instanceof RubyBignum) {
  RubyBignum bignum = (RubyBignum)from;
  RubyArray ary = (RubyArray)bignum.divmod(runtime.getCurrentContext(), big128);
  buf.append((byte)(RubyNumeric.fix2int(ary.at(RubyFixnum.one(runtime))) | 0x80) & 0xff);
  from = ary.at(RubyFixnum.zero(runtime));
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

while (from instanceof RubyBignum) {
  RubyBignum bignum = (RubyBignum)from;
  RubyArray ary = (RubyArray)bignum.divmod(runtime.getCurrentContext(), big128);
  buf.append((byte)(RubyNumeric.fix2int(ary.at(RubyFixnum.one(runtime))) | 0x80) & 0xff);
  from = ary.at(RubyFixnum.zero(runtime));
org.jrubyRubyBignumdivmod

Javadoc

rb_big_divmod

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,
  • even_p,
  • fix2big,
  • getBigIntegerValue

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • putExtra (Intent)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Runner (org.openjdk.jmh.runner)
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