Tabnine Logo
RubyBignum.subtractFloat
Code IndexAdd Tabnine to your IDE (free)

How to use
subtractFloat
method
in
org.jruby.RubyBignum

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

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.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: com.ning.billing/killbill-osgi-bundles-jruby

/** rb_big_minus
 *
 */
@JRubyMethod(name = "-", required = 1)
public IRubyObject op_minus(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyFixnum) {
    return subtractFixnum(((RubyFixnum)other).getLongValue());
  } else if (other instanceof RubyBignum) {
    return subtractBignum(((RubyBignum)other).value);
  } else if (other instanceof RubyFloat) {
    return subtractFloat((RubyFloat)other);
  }
  return subtractOther(context, other);
}
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

/** rb_big_minus
 *
 */
@JRubyMethod(name = "-", required = 1)
public IRubyObject op_minus(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyFixnum) {
    return subtractFixnum(((RubyFixnum)other).getLongValue());
  } else if (other instanceof RubyBignum) {
    return subtractBignum(((RubyBignum)other).value);
  } else if (other instanceof RubyFloat) {
    return subtractFloat((RubyFloat)other);
  }
  return subtractOther(context, other);
}
org.jrubyRubyBignumsubtractFloat

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
  • getSupportFragmentManager (FragmentActivity)
  • putExtra (Intent)
  • notifyDataSetChanged (ArrayAdapter)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now