org.jruby
Class RubyBigDecimal
java.lang.Object
org.jruby.RubyObject
org.jruby.RubyNumeric
org.jruby.RubyBigDecimal
- All Implemented Interfaces:
- java.lang.Cloneable, IRubyObject
- public class RubyBigDecimal
- extends RubyNumeric
- Author:
- Ola Bini
Method Summary |
static IRubyObject |
_load(IRubyObject recv,
IRubyObject p1,
Block block)
|
IRubyObject |
abs()
num_abs |
IRubyObject |
add(IRubyObject[] args)
|
IRubyObject |
ceil(IRubyObject arg)
|
IRubyObject |
coerce(IRubyObject other)
num_coerce |
static RubyClass |
createBigDecimal(Ruby runtime)
|
IRubyObject |
div(IRubyObject[] args)
|
IRubyObject |
divmod(IRubyObject arg)
num_divmod |
static IRubyObject |
double_fig(IRubyObject recv)
|
IRubyObject |
eql_p(IRubyObject arg)
num_eql |
IRubyObject |
exponent()
|
IRubyObject |
finite_p()
|
IRubyObject |
fix()
|
IRubyObject |
floor(IRubyObject arg)
|
IRubyObject |
frac()
|
IRubyObject |
ge(IRubyObject arg)
|
double |
getDoubleValue()
|
long |
getLongValue()
|
IRubyObject |
gt(IRubyObject arg)
|
IRubyObject |
infinite_p()
|
IRubyObject |
initialize(IRubyObject[] args,
Block unusedBlock)
|
IRubyObject |
inspect()
rb_obj_inspect |
IRubyObject |
le(IRubyObject arg)
|
static IRubyObject |
limit(IRubyObject recv,
IRubyObject arg1)
|
IRubyObject |
lt(IRubyObject arg)
|
IRubyObject |
mod(IRubyObject arg)
|
static IRubyObject |
mode(IRubyObject recv,
IRubyObject mode,
IRubyObject value)
|
IRubyObject |
mult(IRubyObject[] args)
|
RubyNumeric |
multiplyWith(RubyBignum value)
|
RubyNumeric |
multiplyWith(RubyFloat value)
|
RubyNumeric |
multiplyWith(RubyInteger value)
|
IRubyObject |
nan_p()
|
IRubyObject |
ne(IRubyObject arg)
|
static RubyBigDecimal |
newBigDecimal(IRubyObject recv,
IRubyObject[] args,
Block unusedBlock)
|
static RubyBigDecimal |
newInstance(IRubyObject recv,
IRubyObject[] args,
Block unusedBlock)
|
IRubyObject |
nonzero_p()
num_nonzero_p |
IRubyObject |
power(IRubyObject arg)
|
IRubyObject |
precs()
|
IRubyObject |
remainder(IRubyObject arg)
num_remainder |
IRubyObject |
round(IRubyObject[] args)
|
IRubyObject |
sign()
|
IRubyObject |
spaceship(IRubyObject arg)
|
IRubyObject |
split()
|
IRubyObject |
sqrt(IRubyObject[] args)
|
IRubyObject |
sub(IRubyObject[] args)
|
IRubyObject |
to_f()
|
IRubyObject |
to_i()
|
IRubyObject |
to_int()
num_to_int |
IRubyObject |
to_s(IRubyObject[] args)
|
IRubyObject |
truncate(IRubyObject[] args)
|
static IRubyObject |
ver(IRubyObject recv)
|
IRubyObject |
zero_p()
num_zero_p |
Methods inherited from class org.jruby.RubyNumeric |
asNumeric, callCoerced, callCoerced, ceil, checkInt, cmp, coerceBin, coerceBody, coerceCmp, coerceRelOp, createNumericClass, dbl_cmp, dbl2num, div, doCoerce, equal, fix2int, fix2long, floor, getCoerced, init_copy, int_p, int2fix, modulo, newNumeric, num2dbl, num2fix, num2int, num2long, quo, round, sadded, step, str2fnum, str2fnum, str2inum, str2inum, truncate, uminus, uplus |
Methods inherited from class org.jruby.RubyObject |
addFinalizer, anyToString, asString, asSymbol, attachToObjectSpace, callInit, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodMissingIfNecessary, callSuper, checkArrayType, checkFrozen, checkStringType, compilerCallMethod, compilerCallMethodWithIndex, convertToArray, convertToFloat, convertToHash, convertToInteger, convertToString, convertToType, convertToType, convertToType, convertToTypeWithCheck, createObjectClass, dataGetStruct, dataWrapStruct, display, doClone, dup, eql, eqlInternal, equalInternal, equals, evalSimple, evalUnder, evalWithBinding, extend, freeze, frozen, getInstanceVariable, getInstanceVariables, getInstanceVariablesSnapshot, getJavaClass, getMetaClass, getNativeTypeIndex, getRuntime, getSingletonClass, getSingletonClassClone, getType, hash, hashCode, id_deprecated, id, infectBy, inherited, initCopy, initialize_copy, instance_eval, instance_exec, instance_of, instance_variable_get, instance_variable_set, instance_variables, instanceVariableNames, isFalse, isFrozen, isImmediate, isKindOf, isNil, isSingleton, isTaint, isTrue, kind_of, makeMetaClass, match, method, methods, nil_p, obj_equal, private_methods, protected_methods, public_methods, puts, rbClone, remove_instance_variable, removeFinalizers, removeInstanceVariable, respond_to, respondsTo, safeGetInstanceVariables, safeHasInstanceVariables, send, setFrozen, setInstanceVariable, setInstanceVariable, setInstanceVariables, setMetaClass, setTaint, singleton_methods, specificEval, taint, tainted, testFrozen, to_s, toString, trueFalseNil, trueFalseNil, type_deprecated, type, untaint |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
RubyBigDecimal
public RubyBigDecimal(Ruby runtime,
RubyClass klass)
RubyBigDecimal
public RubyBigDecimal(Ruby runtime,
java.math.BigDecimal value)
createBigDecimal
public static RubyClass createBigDecimal(Ruby runtime)
newInstance
public static RubyBigDecimal newInstance(IRubyObject recv,
IRubyObject[] args,
Block unusedBlock)
newBigDecimal
public static RubyBigDecimal newBigDecimal(IRubyObject recv,
IRubyObject[] args,
Block unusedBlock)
ver
public static IRubyObject ver(IRubyObject recv)
_load
public static IRubyObject _load(IRubyObject recv,
IRubyObject p1,
Block block)
double_fig
public static IRubyObject double_fig(IRubyObject recv)
limit
public static IRubyObject limit(IRubyObject recv,
IRubyObject arg1)
mode
public static IRubyObject mode(IRubyObject recv,
IRubyObject mode,
IRubyObject value)
initialize
public IRubyObject initialize(IRubyObject[] args,
Block unusedBlock)
- Overrides:
initialize
in class RubyObject
mod
public IRubyObject mod(IRubyObject arg)
mult
public IRubyObject mult(IRubyObject[] args)
power
public IRubyObject power(IRubyObject arg)
add
public IRubyObject add(IRubyObject[] args)
sub
public IRubyObject sub(IRubyObject[] args)
div
public IRubyObject div(IRubyObject[] args)
spaceship
public IRubyObject spaceship(IRubyObject arg)
eql_p
public IRubyObject eql_p(IRubyObject arg)
- Description copied from class:
RubyNumeric
- num_eql
- Overrides:
eql_p
in class RubyNumeric
ne
public IRubyObject ne(IRubyObject arg)
lt
public IRubyObject lt(IRubyObject arg)
le
public IRubyObject le(IRubyObject arg)
gt
public IRubyObject gt(IRubyObject arg)
ge
public IRubyObject ge(IRubyObject arg)
abs
public IRubyObject abs()
- Description copied from class:
RubyNumeric
- num_abs
- Overrides:
abs
in class RubyNumeric
ceil
public IRubyObject ceil(IRubyObject arg)
coerce
public IRubyObject coerce(IRubyObject other)
- Description copied from class:
RubyNumeric
- num_coerce
- Overrides:
coerce
in class RubyNumeric
getDoubleValue
public double getDoubleValue()
- Overrides:
getDoubleValue
in class RubyNumeric
getLongValue
public long getLongValue()
- Overrides:
getLongValue
in class RubyNumeric
multiplyWith
public RubyNumeric multiplyWith(RubyInteger value)
multiplyWith
public RubyNumeric multiplyWith(RubyFloat value)
multiplyWith
public RubyNumeric multiplyWith(RubyBignum value)
divmod
public IRubyObject divmod(IRubyObject arg)
- Description copied from class:
RubyNumeric
- num_divmod
- Overrides:
divmod
in class RubyNumeric
exponent
public IRubyObject exponent()
finite_p
public IRubyObject finite_p()
fix
public IRubyObject fix()
floor
public IRubyObject floor(IRubyObject arg)
frac
public IRubyObject frac()
infinite_p
public IRubyObject infinite_p()
inspect
public IRubyObject inspect()
- Description copied from class:
RubyObject
- rb_obj_inspect
- Specified by:
inspect
in interface IRubyObject
- Overrides:
inspect
in class RubyObject
nan_p
public IRubyObject nan_p()
nonzero_p
public IRubyObject nonzero_p()
- Description copied from class:
RubyNumeric
- num_nonzero_p
- Overrides:
nonzero_p
in class RubyNumeric
precs
public IRubyObject precs()
remainder
public IRubyObject remainder(IRubyObject arg)
- Description copied from class:
RubyNumeric
- num_remainder
- Overrides:
remainder
in class RubyNumeric
round
public IRubyObject round(IRubyObject[] args)
sign
public IRubyObject sign()
split
public IRubyObject split()
sqrt
public IRubyObject sqrt(IRubyObject[] args)
to_f
public IRubyObject to_f()
to_i
public IRubyObject to_i()
to_int
public IRubyObject to_int()
- Description copied from class:
RubyNumeric
- num_to_int
- Overrides:
to_int
in class RubyNumeric
to_s
public IRubyObject to_s(IRubyObject[] args)
truncate
public IRubyObject truncate(IRubyObject[] args)
zero_p
public IRubyObject zero_p()
- Description copied from class:
RubyNumeric
- num_zero_p
- Overrides:
zero_p
in class RubyNumeric
Copyright © 2002-2007 JRuby Team. All Rights Reserved.