Package org.jruby
Class RubyBignum
java.lang.Object
org.jruby.RubyBasicObject
org.jruby.RubyObject
org.jruby.RubyNumeric
org.jruby.RubyInteger
org.jruby.RubyBignum
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<IRubyObject>,InstanceVariables,InternalVariables,IRubyObject,CoreObjectType
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jruby.RubyNumeric
RubyNumeric.InvalidIntegerException, RubyNumeric.NumberTooLargeExceptionNested classes/interfaces inherited from class org.jruby.RubyObject
RubyObject.DataNested classes/interfaces inherited from class org.jruby.RubyBasicObject
RubyBasicObject.Finalizer -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intstatic final BigIntegerstatic final BigIntegerprivate static final longstatic final BigInteger(package private) final BigIntegerFields inherited from class org.jruby.RubyInteger
SINGLE_CHAR_BYTELISTS, SINGLE_CHAR_BYTELISTS19, SINGLE_CHAR_UTF8_BYTELISTSFields inherited from class org.jruby.RubyNumeric
DBL_EPSILONFields inherited from class org.jruby.RubyObject
IVAR_INSPECTING_OBJECT_ALLOCATOR, OBJECT_ALLOCATOR, REIFYING_OBJECT_ALLOCATORFields inherited from class org.jruby.RubyBasicObject
ALL_F, BASICOBJECT_ALLOCATOR, COMPARE_BY_IDENTITY_F, ERR_INSECURE_SET_INST_VAR, FALSE_F, FL_USHIFT, flags, FROZEN_F, IS_OVERLAID_F, metaClass, NEVER, NIL_F, REFINED_MODULE_F, STAMP_OFFSET, TAINTED_F, UNDEF, UNTRUST_F, USER0_F, USER1_F, USER2_F, USER3_F, USER4_F, USER5_F, USER6_F, USER7_F, USER8_F, USER9_F, USERA_F, VAR_TABLE_OFFSET, varTable, varTableStampFields inherited from interface org.jruby.runtime.builtin.IRubyObject
NULL_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabs()Deprecated.abs(ThreadContext context) rb_big_absprivate IRubyObjectprivate IRubyObjectaddOther(ThreadContext context, IRubyObject other) static doublebig2dbl(RubyBignum val) rb_big2dblstatic longbig2long(RubyBignum val) rb_big2longstatic longbig2ulong(RubyBignum value) rb_big2ulong This is here because for C extensions ulong can hold different values without throwing a RangeErrorstatic longbig2ulong(Ruby runtime, BigInteger big) private static longbigHash(Ruby runtime, BigInteger value) static RubyIntegerbignorm(Ruby runtime, BigInteger bi) rb_big_normbit_length(ThreadContext context) ceil(ThreadContext context, IRubyObject arg) rb_big_ceilprivate RubyFixnumcheckShiftDown(ThreadContext context, RubyBignum other) coerce(IRubyObject other) rb_big_coercefinal intcompareTo(IRubyObject other) Compares this Ruby object with another.(package private) static doubleconvertToDouble(BigInteger bigint) BigInteger#doubleValue is _really_ slow currently.static RubyClasscreateBignumClass(Ruby runtime) denominator(ThreadContext context) numeric_denominatordigits(ThreadContext context, IRubyObject base) rb_big_digitsprivate RubyIntegerdivideImpl(Ruby runtime, BigInteger otherValue) divmod(ThreadContext context, IRubyObject other) rb_big_divmodeql_p(IRubyObject other) rb_big_eqleql_p19(IRubyObject other) Deprecated.booleanThis override does not do a "checked" dispatch.even_p(ThreadContext context) (package private) final RubyFloatfdivDouble(ThreadContext context, RubyBignum y) fdivDouble(ThreadContext context, IRubyObject y) fdivFloat(ThreadContext context, RubyFloat y) private RubyFloatfdivInt(Ruby runtime, BigDecimal y) fdivInt(ThreadContext context, RubyBignum y) static BigIntegerfix2big(RubyFixnum arg) rb_int2bigfloor(ThreadContext context, IRubyObject arg) rb_big_floordoubleintReturn the value of this numeric as a 32-bit long.Class<?>Will return the Java interface that most closely can represent this object, when working through Java integration translations.longReturn the value of this numeric as a 64-bit long.This is overridden in the other concrete Java builtins to provide a fast way to determine what type they are.rb_singleton_class Note: this method is specialized for RubyFixnum, RubySymbol, RubyNil and RubyBoolean Will either return the existing singleton class for this object, or create a new one and return that.getValue()Getter for property value.hash()rb_big_hashinthashCode()This override does not do "checked" dispatch since Object usually has #hash defined.idiv(ThreadContext context, long other) idiv(ThreadContext context, IRubyObject other) rb_big_idivprotected booleanint_round_zero_p(ThreadContext context, int ndigits) booleanIs object immediate (def: Fixnum, Symbol, true, false, nil?).isNegative(ThreadContext context) num_negative_pisPositive(ThreadContext context) num_positive_pfinal booleanisZero()static BigIntegerlong2big(long arg) static voidmarshalTo(RubyBignum bignum, MarshalStream output) (package private) IRubyObjectmodulo(ThreadContext context, long other) modulo(ThreadContext context, IRubyObject other) num_modulonegate()static RubyIntegernewBignorm(Ruby runtime, double value) Return a Bignum or Fixnum (Integer) for the given value, or raise FloatDomainError if it is out of range.static RubyBignumReturn a Bignum for the given value, or raise FloatDomainError if it is out of range.static RubyBignumstatic RubyBignumstatic RubyBignumnewBignum(Ruby runtime, BigInteger value) nonzero_p(ThreadContext context) num_nonzero_pnumerator(ThreadContext context) numeric_numeratorodd_p(ThreadContext context) (package private) final RubyIntegerop_and(ThreadContext context, RubyFixnum other) op_and(ThreadContext context, IRubyObject other) rb_big_andop_and19(ThreadContext context, IRubyObject other) Deprecated.op_aref(ThreadContext context, IRubyObject other) rb_big_arefop_cmp(ThreadContext context, IRubyObject other) rb_big_cmpop_div(ThreadContext context, long other) op_div(ThreadContext context, IRubyObject other) rb_big_divprivate IRubyObjectop_divide(ThreadContext context, IRubyObject other, boolean slash) rb_big_divide.op_equal(ThreadContext context, IRubyObject other) rb_big_eqop_lshift(ThreadContext context, long shift) op_lshift(ThreadContext context, IRubyObject other) rb_big_lshiftfinal IRubyObjectop_minus(ThreadContext context, long other) final IRubyObjectop_minus(ThreadContext context, BigInteger other) op_minus(ThreadContext context, IRubyObject other) rb_big_minusop_mod(ThreadContext context, long other) op_mod(ThreadContext context, IRubyObject other) rb_big_moduloop_mod19(ThreadContext context, IRubyObject other) Deprecated.final IRubyObjectop_mul(ThreadContext context, long other) op_mul(ThreadContext context, IRubyObject other) rb_big_mulfinal IRubyObjectop_mul19(ThreadContext context, IRubyObject other) Deprecated.op_neg(ThreadContext context) rb_big_neg(package private) final RubyIntegerop_or(ThreadContext context, RubyFixnum other) op_or(ThreadContext context, IRubyObject other) rb_big_orop_or19(ThreadContext context, IRubyObject other) Deprecated.final IRubyObjectop_plus(ThreadContext context, long other) final IRubyObjectop_plus(ThreadContext context, BigInteger other) op_plus(ThreadContext context, IRubyObject other) rb_big_plusfinal IRubyObjectop_pow(ThreadContext context, long other) op_pow(ThreadContext context, IRubyObject other) rb_big_powop_pow19(ThreadContext context, IRubyObject other) Deprecated.op_rshift(ThreadContext context, long shift) op_rshift(ThreadContext context, IRubyObject other) rb_big_rshiftop_uminus(ThreadContext context) rb_big_uminusop_xor(ThreadContext context, IRubyObject other) rb_big_xorop_xor19(ThreadContext context, IRubyObject other) Deprecated.private RubyNumericquo(ThreadContext context, IRubyObject other) rb_big_quofinal IRubyObjectquo19(ThreadContext context, IRubyObject other) Deprecated.remainder(ThreadContext context, IRubyObject other) rb_big_remainderremainder19(ThreadContext context, IRubyObject other) Deprecated.intsignum()private static JavaSites.BignumSitessites(ThreadContext context) size(ThreadContext context) rb_big_sizesqrt(ThreadContext context) private IRubyObjectsubtractFloat(RubyFloat other) private IRubyObjectsubtractOther(ThreadContext context, IRubyObject other) to_f()to_f(ThreadContext context) rb_big_to_fto_s()rb_any_to_s call-seq: obj.to_s => string Returns a string representing obj.to_s(IRubyObject arg0) to_s(IRubyObject[] args) rb_big_to_sstatic BigIntegertoBigInteger(double value) truncate(ThreadContext context, IRubyObject arg) rb_big_truncatestatic RubyNumericunmarshalFrom(UnmarshalStream input) private voidwarnIfPowExponentTooBig(ThreadContext context, long other) zero_p(ThreadContext context) num_zero_pMethods inherited from class org.jruby.RubyInteger
allbits_p, anybits_p, ceil, ceil, chr, chr, chr19, chr19, convertToInteger, createIntegerClass, digits, div_div, downto, duckUpto, fdiv, fixnumUpto, floor, floor, floorSqrt, floorSqrt, gcd, gcdlcm, induced_from, int_half_p_half_down, int_half_p_half_even, int_half_p_half_up, int_round_half_down, int_round_half_even, int_round_half_up, integer_p, intPowTmp3, intValue, isNegative, isOne, isPositive, lcm, magnitude, nobits_p, op_aref, op_ge, op_gt, op_idiv, op_le, op_lshift, op_lt, op_neg, op_rshift, op_uminus, ord, pow, pow, pred, rationalize, round, round, round, round, round, round19, round19, roundShared, singleCharByteList, singleCharString, singleCharUTF8ByteList, size, sqrt, succ, times, timesSize, to_i, to_r, toFloat, toInteger, truncate, truncate, uptoMethods inherited from class org.jruby.RubyNumeric
abs2, arg, asNumeric, callCoerced, callCoerced, callCoerced, callCoerced, checkInt, checkInt, coerceBin, coerceBin, coerceBit, coerceBit, coerceBody, coerceCmp, coerceCmp, coerceFailed, coerceRelOp, coerceRelOp, coerceRescue, compareWithZero, conjugate, createNumericClass, dbl_cmp, dbl2ival, dbl2num, div, div19, divmod19, doCoerce, dup, eql_p, finite_p, fix2int, fix2int, fix2long, fixable, float2long, float2ulong, floatStep, floatStep, floatStepSize, getCoerced, getRoundingMode, image, infinite_p, initialize_copy, int2fix, intervalStepSize, isReal, modulo19, negativeInt, negFixable, negFixable, newNumeric, num_imaginary, num2chr, num2dbl, num2dbl, num2fix, num2int, num2long, num2ulong, numFuncall, numFuncall, numRemainder, op_cmp, op_not, op_num_equal, op_uplus, polar, posFixable, posFixable, positiveInt, quo_19, rbClone, rbClone, rbClone, rbClone, real, real_p, rect, scalar_p, singleton_method_added, step, str2fnum, str2fnum, str2fnum, str2fnum19, str2inum, str2inum, str2inum, to_c, to_int, toJavaMethods inherited from class org.jruby.RubyObject
attachToObjectSpace, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, convertToType, createObjectClass, dig, dig1, dig2, eqlInternal, equalInternal, inspect, op_eqq, puts, specificEval, toRubyString, toStringMethods inherited from class org.jruby.RubyBasicObject
addFinalizer, anyToString, asJavaString, asString, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callSuper, checkArrayType, checkCallMethod, checkCallMethod, checkFrozen, checkStringType, checkStringType19, convertToArray, convertToFloat, convertToHash, convertToInteger, convertToInteger, convertToString, copyInstanceVariablesInto, copySpecialInstanceVariables, createBasicObjectClass, dataGetStruct, dataGetStructChecked, dataWrapStruct, decode, defaultToJava, display, ensureInstanceVariablesSettable, eql, equal_p, equal_p19, evalUnder, extend, fastGetInstanceVariable, fastGetInternalVariable, fastHasInstanceVariable, fastHasInternalVariable, fastSetInstanceVariable, fastSetInternalVariable, freeze, frozen_p, getFFIHandle, getFlag, getInstanceEvalClass, getInstanceVariable, getInstanceVariableList, getInstanceVariableNameList, getInstanceVariables, getInternalVariable, getInternalVariables, getMetaClass, getMetaClass, getNativeHandle, getNativeTypeIndex, getObjectId, getRuntime, getSingletonClassClone, getSingletonClassCloneAndAttach, getType, getVariable, getVariableCount, getVariableList, getVariableNameList, hashyInspect, hasInstanceVariable, hasInstanceVariables, hasInternalVariable, hasVariables, id, infectBy, infectBy, infectBy, initialize, initialize19, inspect, inspectHashCode, instance_eval, instance_eval, instance_eval, instance_eval, instance_eval19, instance_eval19, instance_eval19, instance_eval19, instance_exec, instance_exec19, instance_of_p, instance_variable_defined_p, instance_variable_get, instance_variable_set, instance_variables, instance_variables19, isBuiltin, isClass, isFalse, isFrozen, isModule, isNil, isSpecialConst, isSpecialObject, isTaint, isTrue, isUntrusted, kind_of_p, makeMetaClass, method, method_missing, method_missing19, method19, methods, methods, methods19, methodsImpl, nil_p, nonFixnumHashCode, OBJ_INIT_COPY, objInitCopy, op_equal_19, op_match, op_match19, op_not_equal, op_not_match, private_methods, private_methods19, protected_methods, protected_methods19, public_methods, public_methods19, rbInspect, recacheBuiltinMethods, remove_instance_variable, removeFinalizers, removeInstanceVariable, removeInternalVariable, respond_to_p, respond_to_p, respond_to_p, respond_to_p19, respond_to_p19, respondsTo, respondsToMissing, respondsToMissing, send, send, send, send, send, send19, send19, send19, send19, setFFIHandle, setFlag, setFrozen, setInstanceVariable, setInternalVariable, setMetaClass, setNativeHandle, setTaint, setUntrusted, setVariable, singleton_method, singleton_method_added, singleton_method_added19, singleton_method_removed, singleton_method_removed19, singleton_method_undefined, singleton_method_undefined19, singleton_methods, specificEval, specificEval, specificEval, specificEval, syncVariables, syncVariables, taint, taint, tainted, tainted_p, testFrozen, testFrozen, to_a, to_a, trust, type, type_deprecated, untaint, untrust, untrusted_p, validateInstanceVariable, validateInstanceVariable, validateInstanceVariable, variableTableContains, variableTableFastContains, variableTableFastFetch, variableTableFastStore, variableTableFetch, variableTableRemove, variableTableStore, variableTableSync, yieldUnder, yieldUnder
-
Field Details
-
BIT_SIZE
private static final int BIT_SIZE- See Also:
-
MAX
private static final long MAX- See Also:
-
LONG_MAX
-
LONG_MIN
-
ULONG_MAX
-
value
-
BIGLEN_LIMIT
private static final int BIGLEN_LIMIT- See Also:
-
-
Constructor Details
-
RubyBignum
-
-
Method Details
-
createBignumClass
-
getNativeClassIndex
Description copied from class:RubyObjectThis is overridden in the other concrete Java builtins to provide a fast way to determine what type they are. Will generally return a value from org.jruby.runtime.ClassIndex- Specified by:
getNativeClassIndexin interfaceCoreObjectType- Overrides:
getNativeClassIndexin classRubyObject- See Also:
-
getJavaClass
Description copied from class:RubyBasicObjectWill return the Java interface that most closely can represent this object, when working through Java integration translations.- Specified by:
getJavaClassin interfaceIRubyObject- Overrides:
getJavaClassin classRubyBasicObject- Returns:
- the true Java class of this (Ruby) object
-
newBignum
-
newBignum
Return a Bignum for the given value, or raise FloatDomainError if it is out of range. Note this method may return Bignum that are in Fixnum range. -
toBigInteger
-
newBignorm
Return a Bignum or Fixnum (Integer) for the given value, or raise FloatDomainError if it is out of range. MRI: rb_dbl2big -
newBignum
-
newBignum
-
getDoubleValue
public double getDoubleValue()- Overrides:
getDoubleValuein classRubyNumeric
-
getLongValue
public long getLongValue()Description copied from class:RubyNumericReturn the value of this numeric as a 64-bit long. If the value does not fit in 64 bits, it will be truncated.- Overrides:
getLongValuein classRubyNumeric
-
getIntValue
public int getIntValue()Description copied from class:RubyNumericReturn the value of this numeric as a 32-bit long. If the value does not fit in 32 bits, it will be truncated.- Overrides:
getIntValuein classRubyNumeric
-
getBigIntegerValue
- Overrides:
getBigIntegerValuein classRubyNumeric
-
getSingletonClass
Description copied from class:RubyBasicObjectrb_singleton_class Note: this method is specialized for RubyFixnum, RubySymbol, RubyNil and RubyBoolean Will either return the existing singleton class for this object, or create a new one and return that.- Specified by:
getSingletonClassin interfaceIRubyObject- Overrides:
getSingletonClassin classRubyBasicObject- Returns:
- the Ruby singleton class
-
getValue
Getter for property value.- Returns:
- Value of property value.
-
signum
public int signum()- Overrides:
signumin classRubyInteger
-
negate
- Overrides:
negatein classRubyInteger
-
bignorm
rb_big_norm -
big2long
rb_big2long -
big2ulong
rb_big2ulong This is here because for C extensions ulong can hold different values without throwing a RangeError -
big2ulong
-
big2dbl
rb_big2dbl -
checkShiftDown
-
convertToDouble
BigInteger#doubleValue is _really_ slow currently. This is faster, and mostly correct (?) -
fix2big
rb_int2big -
long2big
-
ceil
rb_big_ceil- Specified by:
ceilin classRubyInteger
-
floor
rb_big_floor- Specified by:
floorin classRubyInteger
-
truncate
rb_big_truncate- Specified by:
truncatein classRubyInteger
-
digits
rb_big_digits- Specified by:
digitsin classRubyInteger
-
to_s
rb_big_to_s -
to_s
Description copied from class:RubyBasicObjectrb_any_to_s call-seq: obj.to_s => string Returns a string representing obj. The defaultto_sprints the object's class and an encoding of the object id. As a special case, the top-level object that is the initial execution context of Ruby programs returns ``main.''- Specified by:
to_sin classRubyInteger
-
to_s
- Specified by:
to_sin classRubyInteger
-
coerce
rb_big_coerce- Overrides:
coercein classRubyNumeric
-
op_uminus
rb_big_uminus- Specified by:
op_uminusin classRubyInteger
-
op_plus
rb_big_plus- Specified by:
op_plusin classRubyInteger
-
op_plus
- Overrides:
op_plusin classRubyInteger
-
op_plus
-
addFloat
-
addOther
-
op_minus
rb_big_minus- Specified by:
op_minusin classRubyInteger
-
op_minus
- Overrides:
op_minusin classRubyInteger
-
op_minus
-
subtractFloat
-
subtractOther
-
op_mul
rb_big_mul- Specified by:
op_mulin classRubyInteger
-
op_mul19
Deprecated. -
op_mul
- Overrides:
op_mulin classRubyInteger
-
op_divide
rb_big_divide. Shared part for both "/" and "div" operations. -
divideImpl
-
op_div
rb_big_div- Specified by:
op_divin classRubyInteger
-
op_div
-
idiv
rb_big_idiv- Specified by:
idivin classRubyInteger
-
idiv
- Overrides:
idivin classRubyNumeric
-
divmod
rb_big_divmod- Overrides:
divmodin classRubyInteger
-
op_mod
rb_big_modulo- Specified by:
op_modin classRubyInteger
-
op_mod
- Overrides:
op_modin classRubyInteger
-
modulo
Description copied from class:RubyNumericnum_modulo- Overrides:
moduloin classRubyNumeric
-
modulo
- Overrides:
moduloin classRubyNumeric
-
op_mod19
Deprecated. -
remainder
rb_big_remainder- Overrides:
remainderin classRubyInteger
-
remainder19
Deprecated. -
quo
rb_big_quo- Overrides:
quoin classRubyNumeric
-
quo19
Deprecated. -
op_pow
rb_big_pow- Specified by:
op_powin classRubyInteger
-
pow
-
op_pow
-
warnIfPowExponentTooBig
-
op_pow19
Deprecated. -
op_and
rb_big_and- Specified by:
op_andin classRubyInteger
-
op_and
-
op_and19
Deprecated. -
op_or
rb_big_or- Specified by:
op_orin classRubyInteger
-
op_or
-
bit_length
- Specified by:
bit_lengthin classRubyInteger
-
op_or19
Deprecated. -
op_xor
rb_big_xor- Specified by:
op_xorin classRubyInteger
-
op_xor19
Deprecated. -
op_neg
rb_big_neg- Specified by:
op_negin classRubyInteger
-
op_lshift
rb_big_lshift- Specified by:
op_lshiftin classRubyInteger
-
op_lshift
- Overrides:
op_lshiftin classRubyInteger
-
op_rshift
rb_big_rshift- Specified by:
op_rshiftin classRubyInteger
-
op_rshift
- Overrides:
op_rshiftin classRubyInteger
-
odd_p
- Overrides:
odd_pin classRubyInteger
-
even_p
- Overrides:
even_pin classRubyInteger
-
op_aref
rb_big_aref- Specified by:
op_arefin classRubyInteger
-
compareTo
Description copied from class:RubyBasicObjectCompares this Ruby object with another.- Specified by:
compareToin interfaceComparable<IRubyObject>- Overrides:
compareToin classRubyBasicObject- Parameters:
other- another IRubyObject- Returns:
- 0 if equal, < 0 if this is less than other, > 0 if this is greater than other
-
equals
Description copied from class:RubyObjectThis override does not do a "checked" dispatch.- Overrides:
equalsin classRubyObject- See Also:
-
op_cmp
rb_big_cmp- Specified by:
op_cmpin classRubyInteger
-
op_equal
rb_big_eq- Specified by:
op_equalin interfaceIRubyObject- Specified by:
op_equalin classRubyInteger
-
eql_p
rb_big_eql- Overrides:
eql_pin classRubyBasicObject
-
eql_p19
Deprecated. -
hash
rb_big_hash- Overrides:
hashin classRubyBasicObject
-
hashCode
public int hashCode()Description copied from class:RubyObjectThis override does not do "checked" dispatch since Object usually has #hash defined.- Overrides:
hashCodein classRubyObject- See Also:
-
bigHash
-
to_f
rb_big_to_f- Specified by:
to_fin classRubyInteger
-
to_f
- Overrides:
to_fin classRubyInteger
-
abs
Deprecated. -
abs
rb_big_abs- Specified by:
absin classRubyInteger
-
size
rb_big_size- Specified by:
sizein classRubyInteger
-
zero_p
Description copied from class:RubyNumericnum_zero_p- Specified by:
zero_pin classRubyInteger
-
isZero
public final boolean isZero()- Overrides:
isZeroin classRubyNumeric
-
nonzero_p
Description copied from class:RubyNumericnum_nonzero_p- Overrides:
nonzero_pin classRubyNumeric
-
marshalTo
- Throws:
IOException
-
unmarshalFrom
- Throws:
IOException
-
fdivDouble
- Specified by:
fdivDoublein classRubyInteger
-
fdivDouble
-
fdivInt
-
fdivInt
-
fdivFloat
-
isNegative
Description copied from class:RubyNumericnum_negative_p- Overrides:
isNegativein classRubyInteger
-
isPositive
Description copied from class:RubyNumericnum_positive_p- Overrides:
isPositivein classRubyInteger
-
int_round_zero_p
- Overrides:
int_round_zero_pin classRubyInteger
-
isImmediate
public boolean isImmediate()Description copied from class:RubyBasicObjectIs object immediate (def: Fixnum, Symbol, true, false, nil?).- Specified by:
isImmediatein interfaceIRubyObject- Overrides:
isImmediatein classRubyBasicObject- Returns:
-
numerator
Description copied from class:RubyNumericnumeric_numerator- Overrides:
numeratorin classRubyInteger
-
denominator
Description copied from class:RubyNumericnumeric_denominator- Overrides:
denominatorin classRubyInteger
-
convertToRational
- Overrides:
convertToRationalin classRubyNumeric
-
sqrt
- Specified by:
sqrtin classRubyInteger
-
sites
-