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

How to use
num2int
method
in
org.jruby.RubyBignum

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

origin: org.jruby/jruby-core

@Override
public RubyString to_s(IRubyObject arg0) {
  int base = num2int(arg0);
  if (base < 2 || base > 36) {
    throw getRuntime().newArgumentError("illegal radix " + base);
  }
  return RubyString.newUSASCIIString(getRuntime(), getValue().toString(base));
}
origin: org.jruby/jruby-complete

@Override
public RubyString to_s(IRubyObject arg0) {
  int base = num2int(arg0);
  if (base < 2 || base > 36) {
    throw getRuntime().newArgumentError("illegal radix " + base);
  }
  return RubyString.newUSASCIIString(getRuntime(), getValue().toString(base));
}
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

@JRubyMethod(name = "to_s")
public IRubyObject to_s(IRubyObject arg0) {
  int base = num2int(arg0);
  if (base < 2 || base > 36) {
    throw getRuntime().newArgumentError("illegal radix " + base);
  }
  return RubyString.newUSASCIIString(getRuntime(), getValue().toString(base));
}
origin: com.ning.billing/killbill-osgi-bundles-jruby

@JRubyMethod(name = "to_s")
public IRubyObject to_s(IRubyObject arg0) {
  int base = num2int(arg0);
  if (base < 2 || base > 36) {
    throw getRuntime().newArgumentError("illegal radix " + base);
  }
  return RubyString.newUSASCIIString(getRuntime(), getValue().toString(base));
}
org.jrubyRubyBignumnum2int

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

  • Finding current android device location
  • getSystemService (Context)
  • requestLocationUpdates (LocationManager)
  • findViewById (Activity)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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