| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| private static final int | |
| public static final BigInteger | |
| public static final BigInteger | |
| public static final BigInteger | |
| public static final BigInteger | |
| public static final BigInteger | |
| public static final BigInteger | |
| private static final long | MAX
Hides org. |
| public static final BigInteger | |
| pack-priv final BigInteger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public IRubyObject | |
| public IRubyObject | |
| private IRubyObject | |
| private IRubyObject | |
| public BigInteger | asBigInteger(ThreadContext
the current thread context context)Overrides org. Return a BigInteger representation of this numerical value |
| public double | asDouble(ThreadContext
the current thread context context)Overrides org. Return a double representation of this numerical value |
| public int | asInt(ThreadContext context)
Overrides org. Returns the value of this numeric and a java int. |
| public long | asLong(ThreadContext context)
Overrides org. Return the value of this numeric as a 64-bit long. |
| public static double | |
| public static long | |
| public static long | big2ulong(RubyBignum value)
rb_big2ulong This is here because for C extensions ulong can hold different values without throwing a RangeError |
| public static long | |
| private IRubyObject | |
| private static long | |
| public static RubyInteger | |
| public IRubyObject | |
| public IRubyObject | ceil(ThreadContext context, IRubyObject arg)
Implements abstract org. rb_big_ceil |
| private RubyFixnum | |
| public IRubyObject | |
| public final int | compareTo(IRubyObject
another IRubyObject other)Overrides org. Implements java. Compares this Ruby object with another. |
| pack-priv static double | |
| public RubyRational | |
| public IRubyObject | |
| public RubyArray | digits(ThreadContext context, IRubyObject baseArg)
Implements abstract org. rb_big_digits |
| private RubyInteger | |
| public IRubyObject | divmod(ThreadContext context, IRubyObject other)
Overrides org. rb_big_divmod |
| public IRubyObject | |
| public boolean | equals(Object
object to compare other)Overrides org. This override does not do a "checked" dispatch. |
| public RubyBoolean | |
| public IRubyObject | fdivDouble(ThreadContext context, IRubyObject y)
Implements abstract org.
|
| pack-priv final RubyFloat | |
| public IRubyObject | |
| public IRubyObject | |
| private RubyFloat | |
| public static BigInteger | |
| private IRubyObject | |
| public IRubyObject | floor(ThreadContext context, IRubyObject arg)
Implements abstract org. rb_big_floor |
| public Class | getJavaClass()
Overrides org. Implements org. Will return the Java interface that most closely can represent this object, when working through Java integration translations. |
| public ClassIndex | getNativeClassIndex()
Overrides org. Implements org. This is overridden in the other concrete Java builtins to provide a fast way to determine what type they are. |
| public BigInteger | |
| public RubyFixnum | hash(ThreadContext
the current thread context context)Overrides org. Will return the hash code of this object. |
| public int | hashCode()
Overrides org. This override does not do "checked" dispatch since Object usually has #hash defined. |
| public IRubyObject | idiv(ThreadContext context, IRubyObject other)
Implements abstract org. rb_big_idiv |
| public IRubyObject | |
| protected boolean | int_round_zero_p(ThreadContext context, int ndigits)
Overrides org.
|
| public boolean | isImmediate()
Overrides org. Implements org. Is object immediate (def: Fixnum, Symbol, true, false, nil?). |
| public IRubyObject | |
| public IRubyObject | |
| public final boolean | |
| public static BigInteger | |
| public static void | |
| public static void | |
| public IRubyObject | |
| pack-priv IRubyObject | |
| public RubyInteger | |
| public static RubyInteger | newBignorm(Ruby runtime, double value)
Return a Bignum or Fixnum (Integer) for the given value, or raise FloatDomainError if it is out of range. |
| public static RubyBignum | |
| public static RubyBignum | |
| public static RubyBignum | |
| public static RubyBignum | |
| public IRubyObject | |
| public IRubyObject | |
| public RubyBoolean | |
| public IRubyObject | op_and(ThreadContext context, IRubyObject other)
Implements abstract org. rb_big_and |
| pack-priv final RubyInteger | |
| protected IRubyObject | op_aref_subclass(ThreadContext context, IRubyObject other)
Implements abstract org. rb_big_aref |
| public IRubyObject | op_cmp(ThreadContext context, IRubyObject other)
Implements abstract org. rb_big_cmp |
| public IRubyObject | op_div(ThreadContext context, IRubyObject other)
Implements abstract org. rb_big_div |
| public IRubyObject | |
| private IRubyObject | |
| public IRubyObject | op_equal(ThreadContext context, IRubyObject other)
Implements abstract org. Implements org. rb_big_eq |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | op_lshift(ThreadContext context, IRubyObject other)
Implements abstract org. rb_big_lshift |
| public RubyInteger | |
| public IRubyObject | |
| public IRubyObject | op_minus(ThreadContext context, IRubyObject other)
Implements abstract org. rb_big_minus |
| public final IRubyObject | |
| public final IRubyObject | |
| public IRubyObject | op_mod(ThreadContext context, IRubyObject other)
Implements abstract org. rb_big_modulo |
| public IRubyObject | |
| public IRubyObject | op_mul(ThreadContext context, IRubyObject other)
Implements abstract org. rb_big_mul |
| public final IRubyObject | |
| public IRubyObject | |
| public IRubyObject | op_or(ThreadContext context, IRubyObject other)
Implements abstract org. rb_big_or |
| pack-priv final RubyInteger | |
| public IRubyObject | op_plus(ThreadContext context, IRubyObject other)
Implements abstract org. rb_big_plus |
| public final IRubyObject | |
| public final IRubyObject | |
| public IRubyObject | op_pow(ThreadContext context, IRubyObject other)
Implements abstract org. rb_big_pow |
| public final IRubyObject | |
| public IRubyObject | op_rshift(ThreadContext context, IRubyObject other)
Implements abstract org. rb_big_rshift |
| public RubyInteger | |
| public IRubyObject | |
| public IRubyObject | op_xor(ThreadContext context, IRubyObject other)
Implements abstract org. rb_big_xor |
| private RubyNumeric | |
| public IRubyObject | quo(ThreadContext context, IRubyObject otherArg)
Overrides org.
Deprecated
since 10.0.
MRI: rb_big_quo, formerly Deprecated since 10.0 since CRuby no longer has Bignum-specific quo logic. |
| public IRubyObject | remainder(ThreadContext context, IRubyObject other)
Overrides org. rb_big_remainder |
| public int | |
| public RubyClass | singletonClass(ThreadContext
the current thread context context)Overrides org. Overrides default org. Will either return the existing singleton class for this object, or create a new one and return that. |
| private static JavaSites. | sites(ThreadContext context)
Hides org. Retrieve the call sites for this class. |
| public IRubyObject | |
| public IRubyObject | |
| private IRubyObject | |
| private IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public RubyString | |
| public RubyString | |
| public static BigInteger | |
| public IRubyObject | truncate(ThreadContext context, IRubyObject arg)
Implements abstract org. rb_big_truncate |
| public static RubyNumeric | |
| public static RubyNumeric | |
| public IRubyObject |