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

How to use
addFloat
method
in
org.jruby.RubyBignum

Best Java code snippets using org.jruby.RubyBignum.addFloat (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: org.jruby/jruby-complete

/** rb_big_plus
 *
 */
@Override
public IRubyObject op_plus(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyFixnum) {
    return op_plus(context, ((RubyFixnum) other).getLongValue());
  }
  if (other instanceof RubyBignum) {
    return op_plus(context, ((RubyBignum) other).value);
  }
  if (other instanceof RubyFloat) {
    return addFloat((RubyFloat) other);
  }
  return addOther(context, other);
}
origin: org.jruby/jruby-core

/** rb_big_plus
 *
 */
@Override
public IRubyObject op_plus(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyFixnum) {
    return op_plus(context, ((RubyFixnum) other).getLongValue());
  }
  if (other instanceof RubyBignum) {
    return op_plus(context, ((RubyBignum) other).value);
  }
  if (other instanceof RubyFloat) {
    return addFloat((RubyFloat) other);
  }
  return addOther(context, other);
}
origin: com.ning.billing/killbill-osgi-bundles-jruby

/** rb_big_plus
 *
 */
@JRubyMethod(name = "+", required = 1)
public IRubyObject op_plus(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyFixnum) {
    return addFixnum(((RubyFixnum)other).getLongValue());
  } else if (other instanceof RubyBignum) {
    return addBignum(((RubyBignum)other).value);
  } else if (other instanceof RubyFloat) {
    return addFloat((RubyFloat)other);
  }
  return addOther(context, other);
}
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

/** rb_big_plus
 *
 */
@JRubyMethod(name = "+", required = 1)
public IRubyObject op_plus(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyFixnum) {
    return addFixnum(((RubyFixnum)other).getLongValue());
  } else if (other instanceof RubyBignum) {
    return addBignum(((RubyBignum)other).value);
  } else if (other instanceof RubyFloat) {
    return addFloat((RubyFloat)other);
  }
  return addOther(context, other);
}
org.jrubyRubyBignumaddFloat

Popular methods of RubyBignum

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • setRequestProperty (URLConnection)
  • getExternalFilesDir (Context)
  • orElseThrow (Optional)
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JLabel (javax.swing)
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