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

How to use
op_minus
method
in
org.jruby.RubyBignum

Best Java code snippets using org.jruby.RubyBignum.op_minus (Showing top 12 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

private IRubyObject subtractAsBignum(ThreadContext context, RubyFixnum other) {
  return RubyBignum.newBignum(context.runtime, value).op_minus(context, other);
}
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

private IRubyObject subtractAsBignum(ThreadContext context, long other) {
  return RubyBignum.newBignum(context.runtime, value).op_minus(context, other);
}

origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

private IRubyObject subtractAsBignum(ThreadContext context, RubyFixnum other) {
  return RubyBignum.newBignum(context.runtime, value).op_minus(context, other);
}
origin: org.jruby/jruby-complete

private RubyInteger subtractAsBignum(ThreadContext context, long other) {
  return (RubyInteger) RubyBignum.newBignum(context.runtime, value).op_minus(context, other);
}
origin: org.jruby/jruby-core

private RubyInteger subtractAsBignum(ThreadContext context, long other) {
  return (RubyInteger) RubyBignum.newBignum(context.runtime, value).op_minus(context, other);
}
origin: com.ning.billing/killbill-osgi-bundles-jruby

private IRubyObject subtractAsBignum(ThreadContext context, long other) {
  return RubyBignum.newBignum(context.runtime, value).op_minus(context, other);
}

origin: org.jruby/jruby-complete

/** rb_big_minus
 *
 */
@Override
public IRubyObject op_minus(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyFixnum) {
    return op_minus(context, ((RubyFixnum)other).getLongValue());
  }
  if (other instanceof RubyBignum) {
    return op_minus(context, ((RubyBignum)other).value);
  }
  if (other instanceof RubyFloat) {
    return subtractFloat((RubyFloat)other);
  }
  return subtractOther(context, other);
}
origin: org.jruby/jruby-core

/** rb_big_minus
 *
 */
@Override
public IRubyObject op_minus(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyFixnum) {
    return op_minus(context, ((RubyFixnum)other).getLongValue());
  }
  if (other instanceof RubyBignum) {
    return op_minus(context, ((RubyBignum)other).value);
  }
  if (other instanceof RubyFloat) {
    return subtractFloat((RubyFloat)other);
  }
  return subtractOther(context, other);
}
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

private IRubyObject subtractOther(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyBignum) {
    return RubyBignum.newBignum(context.runtime, value).op_minus(context, other);
  } else if (other instanceof RubyFloat) {
    return context.runtime.newFloat((double) value - ((RubyFloat) other).getDoubleValue());
  }
  return coerceBin(context, "-", other);
}
origin: com.ning.billing/killbill-osgi-bundles-jruby

private IRubyObject subtractOther(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyBignum) {
    return RubyBignum.newBignum(context.runtime, value).op_minus(context, other);
  } else if (other instanceof RubyFloat) {
    return context.runtime.newFloat((double) value - ((RubyFloat) other).getDoubleValue());
  }
  return coerceBin(context, "-", other);
}
origin: org.jruby/jruby-core

private IRubyObject subtractOther(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyBignum) {
    return RubyBignum.newBignum(context.runtime, value).op_minus(context, ((RubyBignum) other).value);
  }
  if (other instanceof RubyFloat) {
    return context.runtime.newFloat((double) value - ((RubyFloat) other).getDoubleValue());
  }
  return coerceBin(context, sites(context).op_minus, other);
}
origin: org.jruby/jruby-complete

private IRubyObject subtractOther(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyBignum) {
    return RubyBignum.newBignum(context.runtime, value).op_minus(context, ((RubyBignum) other).value);
  }
  if (other instanceof RubyFloat) {
    return context.runtime.newFloat((double) value - ((RubyFloat) other).getDoubleValue());
  }
  return coerceBin(context, sites(context).op_minus, other);
}
org.jrubyRubyBignumop_minus

Javadoc

rb_big_minus

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
  • getSystemService (Context)
  • getApplicationContext (Context)
  • runOnUiThread (Activity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
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