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

How to use
floor
method
in
org.jruby.RubyBignum

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

origin: org.jruby/jruby-complete

/** rb_big_truncate
 *
 */
@Override
public IRubyObject truncate(ThreadContext context, IRubyObject arg){
  BigInteger self = value;
  if (self.compareTo(BigInteger.ZERO) == 1){
    return floor(context, arg);
  } else if (self.compareTo(BigInteger.ZERO) == -1){
    return ceil(context, arg);
  } else {
    return this;
  }
}
origin: org.jruby/jruby-core

/** rb_big_truncate
 *
 */
@Override
public IRubyObject truncate(ThreadContext context, IRubyObject arg){
  BigInteger self = value;
  if (self.compareTo(BigInteger.ZERO) == 1){
    return floor(context, arg);
  } else if (self.compareTo(BigInteger.ZERO) == -1){
    return ceil(context, arg);
  } else {
    return this;
  }
}
org.jrubyRubyBignumfloor

Javadoc

rb_big_floor

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,
  • 14 Best Plugins for Eclipse
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