public class RubyNumeric extends RubyObject
Modifier and Type | Class and Description |
---|---|
static class |
RubyNumeric.InvalidIntegerException
Deprecated.
|
static class |
RubyNumeric.NumberTooLargeException
Deprecated.
|
RubyObject.Data
RubyBasicObject.Finalizer
Modifier and Type | Field and Description |
---|---|
static double |
DBL_EPSILON |
protected static ObjectAllocator |
NUMERIC_ALLOCATOR |
IVAR_INSPECTING_OBJECT_ALLOCATOR, OBJECT_ALLOCATOR, REIFYING_OBJECT_ALLOCATOR
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, varTableStamp
NULL_ARRAY
Constructor and Description |
---|
RubyNumeric(RubyClass metaClass) |
RubyNumeric(Ruby runtime,
RubyClass metaClass) |
RubyNumeric(Ruby runtime,
RubyClass metaClass,
boolean useObjectSpace) |
RubyNumeric(Ruby runtime,
RubyClass metaClass,
boolean useObjectSpace,
boolean canBeTainted)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
IRubyObject |
abs(ThreadContext context)
num_abs
|
IRubyObject |
abs2(ThreadContext context)
numeric_abs2
|
IRubyObject |
arg(ThreadContext context)
numeric_arg
|
RubyNumeric |
asNumeric() |
IRubyObject |
callCoerced(ThreadContext context,
CallSite site,
IRubyObject other) |
protected IRubyObject |
callCoerced(ThreadContext context,
CallSite site,
IRubyObject other,
boolean err) |
IRubyObject |
callCoerced(ThreadContext context,
java.lang.String method,
IRubyObject other) |
protected IRubyObject |
callCoerced(ThreadContext context,
java.lang.String method,
IRubyObject other,
boolean err) |
IRubyObject |
ceil()
Deprecated.
|
IRubyObject |
ceil(ThreadContext context)
MRI: num_ceil
|
static void |
checkInt(IRubyObject arg,
long num) |
static int |
checkInt(Ruby runtime,
long num)
check_int
|
IRubyObject |
coerce(IRubyObject other)
num_coerce
|
protected IRubyObject |
coerceBin(ThreadContext context,
CallSite site,
IRubyObject other) |
protected IRubyObject |
coerceBin(ThreadContext context,
java.lang.String method,
IRubyObject other)
Deprecated.
|
protected IRubyObject |
coerceBit(ThreadContext context,
JavaSites.CheckedSites site,
IRubyObject other) |
protected IRubyObject |
coerceBit(ThreadContext context,
java.lang.String method,
IRubyObject other)
rb_num_coerce_bit
coercion taking two arguments
|
protected IRubyObject |
coerceBody(ThreadContext context,
IRubyObject other)
coerce_body
|
protected IRubyObject |
coerceCmp(ThreadContext context,
CallSite site,
IRubyObject other) |
protected IRubyObject |
coerceCmp(ThreadContext context,
java.lang.String method,
IRubyObject other)
Deprecated.
|
protected void |
coerceFailed(ThreadContext context,
IRubyObject other)
coerce_failed
|
protected IRubyObject |
coerceRelOp(ThreadContext context,
CallSite site,
IRubyObject other) |
protected IRubyObject |
coerceRelOp(ThreadContext context,
java.lang.String method,
IRubyObject other)
Deprecated.
|
protected IRubyObject |
coerceRescue(ThreadContext context,
IRubyObject other)
coerce_rescue
|
protected static IRubyObject |
compareWithZero(ThreadContext context,
IRubyObject num,
JavaSites.CheckedSites site) |
IRubyObject |
conjugate(ThreadContext context)
numeric_real
|
RubyRational |
convertToRational() |
static RubyClass |
createNumericClass(Ruby runtime) |
static IRubyObject |
dbl_cmp(Ruby runtime,
double a,
double b)
rb_dbl_cmp (numeric.c)
|
static RubyInteger |
dbl2ival(Ruby runtime,
double val)
MRI: macro DBL2IVAL
|
static IRubyObject |
dbl2num(Ruby runtime,
double val)
MRI: macro DBL2NUM
|
IRubyObject |
denominator(ThreadContext context)
numeric_denominator
|
IRubyObject |
div(ThreadContext context,
IRubyObject other)
MRI: num_div
|
IRubyObject |
div19(ThreadContext context,
IRubyObject other)
Deprecated.
|
IRubyObject |
divmod(ThreadContext context,
IRubyObject other)
num_divmod
|
IRubyObject |
divmod19(ThreadContext context,
IRubyObject other)
Deprecated.
|
protected RubyArray |
doCoerce(ThreadContext context,
IRubyObject other,
boolean err)
do_coerce
|
IRubyObject |
dup()
RubyMethod dup.
|
IRubyObject |
eql_p(ThreadContext context,
IRubyObject other)
num_eql
|
IRubyObject |
fdiv(ThreadContext context,
IRubyObject other)
num_fdiv
|
IRubyObject |
finite_p(ThreadContext context) |
static int |
fix2int(IRubyObject arg) |
static int |
fix2int(RubyFixnum arg) |
static long |
fix2long(IRubyObject arg) |
static boolean |
fixable(Ruby runtime,
double f) |
static long |
float2long(RubyFloat flt) |
static long |
float2ulong(RubyFloat flt)
Convert the given RubyFloat into an unsigned long, encoded as a signed long.
|
static double |
floatStepSize(double beg,
double end,
double unit,
boolean excludeLast)
Returns the number of unit-sized steps between the given beg and end.
|
IRubyObject |
floor()
Deprecated.
|
IRubyObject |
floor(ThreadContext context)
MRI: num_floor
|
java.math.BigInteger |
getBigIntegerValue() |
protected IRubyObject[] |
getCoerced(ThreadContext context,
IRubyObject other,
boolean error)
Numeric methods.
|
double |
getDoubleValue() |
int |
getIntValue()
Return the value of this numeric as a 32-bit long.
|
long |
getLongValue()
Return the value of this numeric as a 64-bit long.
|
static java.math.RoundingMode |
getRoundingMode(ThreadContext context,
IRubyObject opts) |
IRubyObject |
idiv(ThreadContext context,
IRubyObject other)
MRI: rb_int_idiv and overrides
|
IRubyObject |
idiv(ThreadContext context,
long other) |
IRubyObject |
image(ThreadContext context)
numeric_image
|
IRubyObject |
infinite_p(ThreadContext context) |
IRubyObject |
initialize_copy(IRubyObject arg)
num_init_copy
|
static RubyNumeric |
int2fix(Ruby runtime,
long val) |
IRubyObject |
integer_p()
num_int_p
|
static RubyNumeric |
intervalStepSize(ThreadContext context,
IRubyObject from,
IRubyObject to,
IRubyObject step,
boolean excl) |
boolean |
isNegative() |
IRubyObject |
isNegative(ThreadContext context)
num_negative_p
|
boolean |
isPositive() |
IRubyObject |
isPositive(ThreadContext context)
num_positive_p
|
boolean |
isReal() |
boolean |
isZero() |
IRubyObject |
magnitude(ThreadContext context)
num_abs/1.9
|
IRubyObject |
modulo(ThreadContext context,
IRubyObject other)
num_modulo
|
IRubyObject |
modulo19(ThreadContext context,
IRubyObject other)
Deprecated.
|
static boolean |
negativeInt(ThreadContext context,
IRubyObject num) |
static boolean |
negFixable(java.math.BigInteger f) |
static boolean |
negFixable(double l) |
static RubyNumeric |
newNumeric(Ruby runtime) |
IRubyObject |
nonzero_p(ThreadContext context)
num_nonzero_p
|
IRubyObject |
num_imaginary(ThreadContext context)
num_imaginary
|
static byte |
num2chr(IRubyObject arg)
NUM2CHR
|
static double |
num2dbl(IRubyObject arg) |
static double |
num2dbl(ThreadContext context,
IRubyObject arg)
rb_num2dbl and NUM2DBL
|
static IRubyObject |
num2fix(IRubyObject val)
rb_num2fix
|
static int |
num2int(IRubyObject arg)
rb_num2int, NUM2INT
|
static long |
num2long(IRubyObject arg)
rb_num2long and FIX2LONG (numeric.c)
|
static long |
num2ulong(IRubyObject arg)
Convert the given value into an unsigned long, encoded as a signed long.
|
IRubyObject |
numerator(ThreadContext context)
numeric_numerator
|
static IRubyObject |
numFuncall(ThreadContext context,
IRubyObject x,
CallSite site) |
static IRubyObject |
numFuncall(ThreadContext context,
IRubyObject x,
CallSite site,
IRubyObject value) |
IRubyObject |
numRemainder(ThreadContext context,
IRubyObject y) |
IRubyObject |
op_cmp(IRubyObject other)
num_cmp
|
IRubyObject |
op_not(ThreadContext context) |
protected IRubyObject |
op_num_equal(ThreadContext context,
IRubyObject other)
num_equal, doesn't override RubyObject.op_equal
|
IRubyObject |
op_plus(ThreadContext context,
IRubyObject other) |
IRubyObject |
op_uminus(ThreadContext context)
num_uminus
|
IRubyObject |
op_uplus()
num_uplus
|
IRubyObject |
polar(ThreadContext context)
numeric_polar
|
static boolean |
posFixable(java.math.BigInteger f) |
static boolean |
posFixable(double l) |
static boolean |
positiveInt(ThreadContext context,
IRubyObject num) |
IRubyObject |
quo_19(ThreadContext context,
IRubyObject other)
Deprecated.
|
IRubyObject |
quo(ThreadContext context,
IRubyObject other)
num_quo
|
IRubyObject |
rbClone()
RubyMethod clone.
|
IRubyObject |
rbClone(IRubyObject[] args)
Deprecated.
|
IRubyObject |
rbClone(ThreadContext context) |
IRubyObject |
rbClone(ThreadContext context,
IRubyObject arg) |
IRubyObject |
real_p(ThreadContext context)
num_real_p
|
IRubyObject |
real(ThreadContext context)
numeric_real
|
IRubyObject |
rect(ThreadContext context)
numeric_rect
|
IRubyObject |
remainder(ThreadContext context,
IRubyObject y)
num_remainder
|
IRubyObject |
round()
Deprecated.
|
IRubyObject |
round(ThreadContext context)
MRI: num_round
|
IRubyObject |
scalar_p()
Deprecated.
|
static IRubyObject |
singleton_method_added(ThreadContext context,
IRubyObject self,
IRubyObject name)
num_sadded
|
IRubyObject |
step(ThreadContext context,
IRubyObject[] args,
Block block)
num_step
|
static RubyFloat |
str2fnum(Ruby runtime,
RubyString arg)
Same as RubyNumeric.str2fnum passing false for strict.
|
static RubyFloat |
str2fnum(Ruby runtime,
RubyString arg,
boolean strict)
Converts a string representation of a floating-point number to the
numeric value.
|
static RubyFloat |
str2fnum19(Ruby runtime,
RubyString arg,
boolean strict)
Deprecated.
|
static RubyInteger |
str2inum(Ruby runtime,
RubyString str,
int base) |
static RubyInteger |
str2inum(Ruby runtime,
RubyString str,
int base,
boolean strict)
Converts a string representation of an integer to the integer value.
|
IRubyObject |
to_c(ThreadContext context)
numeric_to_c
|
IRubyObject |
to_int(ThreadContext context)
num_to_int
|
<T> T |
toJava(java.lang.Class<T> target)
Convert the object to the specified Java class, if possible.
|
IRubyObject |
truncate()
Deprecated.
|
IRubyObject |
truncate(ThreadContext context)
MRI: num_truncate
|
IRubyObject |
zero_p(ThreadContext context)
num_zero_p
|
attachToObjectSpace, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, convertToType, createObjectClass, dig, dig1, dig2, eqlInternal, equalInternal, equals, getNativeClassIndex, hashCode, inspect, op_eqq, puts, specificEval, toRubyString, toString
addFinalizer, anyToString, asJavaString, asString, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callSuper, checkArrayType, checkCallMethod, checkCallMethod, checkFrozen, checkStringType, checkStringType19, compareTo, convertToArray, convertToFloat, convertToHash, convertToInteger, convertToInteger, convertToInteger, convertToString, copyInstanceVariablesInto, copySpecialInstanceVariables, createBasicObjectClass, dataGetStruct, dataGetStructChecked, dataWrapStruct, decode, display, ensureInstanceVariablesSettable, eql_p, 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, getJavaClass, getMetaClass, getMetaClass, getNativeHandle, getNativeTypeIndex, getObjectId, getRuntime, getSingletonClass, getSingletonClassClone, getSingletonClassCloneAndAttach, getType, getVariable, getVariableCount, getVariableList, getVariableNameList, hash, hashyInspect, hasInstanceVariable, hasInternalVariable, hasVariables, id, 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, isImmediate, isModule, isNil, isSpecialConst, isSpecialObject, isTaint, isTrue, isUntrusted, kind_of_p, makeMetaClass, method_missing, method_missing19, method, method19, methods, methods, methods19, nil_p, nonFixnumHashCode, OBJ_INIT_COPY, objInitCopy, op_cmp, op_equal_19, op_equal, op_match, op_match19, op_not_equal, op_not_match, private_methods, private_methods19, protected_methods, protected_methods19, public_methods, public_methods19, rbInspect, remove_instance_variable, removeFinalizers, removeInstanceVariable, removeInternalVariable, 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_added, singleton_method_added19, singleton_method_removed, singleton_method_removed19, singleton_method_undefined, singleton_method_undefined19, singleton_method, singleton_methods, specificEval, specificEval, specificEval, specificEval, syncVariables, syncVariables, taint, taint, tainted_p, testFrozen, testFrozen, to_a, to_a, to_s, trust, type_deprecated, type, untaint, untrust, untrusted_p, validateInstanceVariable, validateInstanceVariable, validateInstanceVariable, variableTableContains, variableTableFastContains, variableTableFastFetch, variableTableFastStore, variableTableFetch, variableTableRemove, variableTableStore, variableTableSync, yieldUnder, yieldUnder
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
array
protected static final ObjectAllocator NUMERIC_ALLOCATOR
public static final double DBL_EPSILON
public RubyNumeric(RubyClass metaClass)
public static java.math.RoundingMode getRoundingMode(ThreadContext context, IRubyObject opts)
public long getLongValue()
public int getIntValue()
public double getDoubleValue()
public java.math.BigInteger getBigIntegerValue()
public static RubyNumeric newNumeric(Ruby runtime)
public static int num2int(IRubyObject arg)
public static int checkInt(Ruby runtime, long num)
public static void checkInt(IRubyObject arg, long num)
public static byte num2chr(IRubyObject arg)
public static long num2long(IRubyObject arg)
public static long float2long(RubyFloat flt)
public static long num2ulong(IRubyObject arg)
arg
- the argument to convertpublic static long float2ulong(RubyFloat flt)
flt
- the argument to convertpublic static IRubyObject dbl2num(Ruby runtime, double val)
public static RubyInteger dbl2ival(Ruby runtime, double val)
public static double num2dbl(IRubyObject arg)
public static double num2dbl(ThreadContext context, IRubyObject arg)
public static IRubyObject dbl_cmp(Ruby runtime, double a, double b)
public static long fix2long(IRubyObject arg)
public static int fix2int(IRubyObject arg)
public static int fix2int(RubyFixnum arg)
public static RubyInteger str2inum(Ruby runtime, RubyString str, int base)
public static RubyNumeric int2fix(Ruby runtime, long val)
public static IRubyObject num2fix(IRubyObject val)
public static RubyInteger str2inum(Ruby runtime, RubyString str, int base, boolean strict)
base
is zero, strings that begin with '0[xX]',
'0[bB]', or '0' (optionally preceded by a sign) will be treated as hex,
binary, or octal numbers, respectively. If a non-zero base is given,
only the prefix (if any) that is appropriate to that base will be
parsed correctly. For example, if the base is zero or 16, the string
"0xff" will be converted to 256, but if the base is 10, it will come out
as zero, since 'x' is not a valid decimal digit. If the string fails
to parse as a number, zero is returned.runtime
- the ruby runtimestr
- the string to be convertedbase
- the expected base of the number (for example, 2, 8, 10, 16),
or 0 if the method should determine the base automatically
(defaults to 10). Values 0 and 2-36 are permitted. Any other
value will result in an ArgumentError.strict
- if true, enforce the strict criteria for String encoding of
numeric values, as required by Integer('n'), and raise an
exception when those criteria are not met. Otherwise, allow
lax expression of values, as permitted by String#to_i, and
return a value in almost all cases (excepting illegal radix).
TODO: describe the rules/criteriapublic static RubyFloat str2fnum(Ruby runtime, RubyString arg)
runtime
- the ruby runtimearg
- the string to be convertedpublic static RubyFloat str2fnum(Ruby runtime, RubyString arg, boolean strict)
runtime
- the ruby runtimearg
- the string to be convertedstrict
- if true, enforce the strict criteria for String encoding of
numeric values, as required by Float('n'), and raise an
exception when those criteria are not met. Otherwise, allow
lax expression of values, as permitted by String#to_f, and
return a value in all cases.
TODO: describe the rules/criteriaprotected final IRubyObject[] getCoerced(ThreadContext context, IRubyObject other, boolean error)
protected final IRubyObject callCoerced(ThreadContext context, java.lang.String method, IRubyObject other, boolean err)
public final IRubyObject callCoerced(ThreadContext context, java.lang.String method, IRubyObject other)
protected final IRubyObject callCoerced(ThreadContext context, CallSite site, IRubyObject other, boolean err)
public final IRubyObject callCoerced(ThreadContext context, CallSite site, IRubyObject other)
protected final IRubyObject coerceBody(ThreadContext context, IRubyObject other)
protected final RubyArray doCoerce(ThreadContext context, IRubyObject other, boolean err)
protected final IRubyObject coerceRescue(ThreadContext context, IRubyObject other)
protected final void coerceFailed(ThreadContext context, IRubyObject other)
@Deprecated protected final IRubyObject coerceBin(ThreadContext context, java.lang.String method, IRubyObject other)
protected final IRubyObject coerceBin(ThreadContext context, CallSite site, IRubyObject other)
protected final IRubyObject coerceBit(ThreadContext context, java.lang.String method, IRubyObject other)
protected final IRubyObject coerceBit(ThreadContext context, JavaSites.CheckedSites site, IRubyObject other)
@Deprecated protected final IRubyObject coerceCmp(ThreadContext context, java.lang.String method, IRubyObject other)
protected final IRubyObject coerceCmp(ThreadContext context, CallSite site, IRubyObject other)
@Deprecated protected final IRubyObject coerceRelOp(ThreadContext context, java.lang.String method, IRubyObject other)
protected final IRubyObject coerceRelOp(ThreadContext context, CallSite site, IRubyObject other)
public RubyNumeric asNumeric()
public IRubyObject op_not(ThreadContext context)
op_not
in class RubyBasicObject
public static IRubyObject singleton_method_added(ThreadContext context, IRubyObject self, IRubyObject name)
public IRubyObject initialize_copy(IRubyObject arg)
initialize_copy
in class RubyBasicObject
public IRubyObject coerce(IRubyObject other)
public IRubyObject op_uplus()
public IRubyObject num_imaginary(ThreadContext context)
public IRubyObject op_uminus(ThreadContext context)
public IRubyObject op_plus(ThreadContext context, IRubyObject other)
public IRubyObject op_cmp(IRubyObject other)
public IRubyObject eql_p(ThreadContext context, IRubyObject other)
public IRubyObject quo(ThreadContext context, IRubyObject other)
@Deprecated public final IRubyObject quo_19(ThreadContext context, IRubyObject other)
public IRubyObject div(ThreadContext context, IRubyObject other)
public IRubyObject idiv(ThreadContext context, IRubyObject other)
public IRubyObject idiv(ThreadContext context, long other)
public IRubyObject divmod(ThreadContext context, IRubyObject other)
public IRubyObject fdiv(ThreadContext context, IRubyObject other)
public IRubyObject modulo(ThreadContext context, IRubyObject other)
public IRubyObject remainder(ThreadContext context, IRubyObject y)
public IRubyObject numRemainder(ThreadContext context, IRubyObject y)
public static boolean positiveInt(ThreadContext context, IRubyObject num)
public static boolean negativeInt(ThreadContext context, IRubyObject num)
public IRubyObject abs(ThreadContext context)
public IRubyObject magnitude(ThreadContext context)
public IRubyObject to_int(ThreadContext context)
public IRubyObject real_p(ThreadContext context)
public boolean isReal()
@Deprecated public IRubyObject scalar_p()
public IRubyObject integer_p()
public IRubyObject zero_p(ThreadContext context)
public boolean isZero()
public IRubyObject nonzero_p(ThreadContext context)
public IRubyObject floor(ThreadContext context)
public IRubyObject ceil(ThreadContext context)
public IRubyObject round(ThreadContext context)
public IRubyObject truncate(ThreadContext context)
public IRubyObject step(ThreadContext context, IRubyObject[] args, Block block)
public static RubyNumeric intervalStepSize(ThreadContext context, IRubyObject from, IRubyObject to, IRubyObject step, boolean excl)
public static double floatStepSize(double beg, double end, double unit, boolean excludeLast)
protected final IRubyObject op_num_equal(ThreadContext context, IRubyObject other)
public IRubyObject numerator(ThreadContext context)
public IRubyObject denominator(ThreadContext context)
public RubyRational convertToRational()
public IRubyObject to_c(ThreadContext context)
public IRubyObject real(ThreadContext context)
public IRubyObject image(ThreadContext context)
public IRubyObject abs2(ThreadContext context)
public IRubyObject arg(ThreadContext context)
public IRubyObject rect(ThreadContext context)
public IRubyObject polar(ThreadContext context)
public IRubyObject conjugate(ThreadContext context)
public <T> T toJava(java.lang.Class<T> target)
IRubyObject
toJava
in interface IRubyObject
toJava
in class RubyBasicObject
target
- The target type to which the object should be converted.IRubyObject.toJava(java.lang.Class<T>)
public IRubyObject isNegative(ThreadContext context)
public IRubyObject isPositive(ThreadContext context)
public boolean isNegative()
public boolean isPositive()
protected static IRubyObject compareWithZero(ThreadContext context, IRubyObject num, JavaSites.CheckedSites site)
public IRubyObject finite_p(ThreadContext context)
public IRubyObject infinite_p(ThreadContext context)
@Deprecated public final IRubyObject rbClone(IRubyObject[] args)
public final IRubyObject rbClone(ThreadContext context)
public final IRubyObject rbClone(ThreadContext context, IRubyObject arg)
rbClone
in class RubyBasicObject
public final IRubyObject rbClone()
IRubyObject
rbClone
in interface IRubyObject
rbClone
in class RubyBasicObject
public IRubyObject dup()
IRubyObject
dup
in interface IRubyObject
dup
in class RubyBasicObject
public static IRubyObject numFuncall(ThreadContext context, IRubyObject x, CallSite site)
public static IRubyObject numFuncall(ThreadContext context, IRubyObject x, CallSite site, IRubyObject value)
public static boolean fixable(Ruby runtime, double f)
public static boolean posFixable(java.math.BigInteger f)
public static boolean negFixable(java.math.BigInteger f)
public static boolean posFixable(double l)
public static boolean negFixable(double l)
@Deprecated public IRubyObject floor()
@Deprecated public IRubyObject ceil()
@Deprecated public IRubyObject round()
@Deprecated public IRubyObject truncate()
@Deprecated public static RubyFloat str2fnum19(Ruby runtime, RubyString arg, boolean strict)
@Deprecated public final IRubyObject div19(ThreadContext context, IRubyObject other)
@Deprecated public final IRubyObject divmod19(ThreadContext context, IRubyObject other)
@Deprecated public final IRubyObject modulo19(ThreadContext context, IRubyObject other)
Copyright © 2001-2021 JRuby. All Rights Reserved.