|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.RubyObject
org.jruby.RubyNumeric
org.jruby.RubyFloat
public class RubyFloat
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jruby.RubyNumeric |
---|
RubyNumeric.InvalidIntegerException, RubyNumeric.NumberTooLargeException |
Nested classes/interfaces inherited from class org.jruby.RubyObject |
---|
RubyObject.Finalizer |
Field Summary |
---|
Fields inherited from class org.jruby.RubyNumeric |
---|
DBL_EPSILON, NUMERIC_ALLOCATOR |
Fields inherited from class org.jruby.RubyObject |
---|
instanceVariables, isTrue, metaClass, NEVER, OBJECT_ALLOCATOR |
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject |
---|
NULL_ARRAY |
Constructor Summary | |
---|---|
RubyFloat(Ruby runtime)
|
|
RubyFloat(Ruby runtime,
double value)
|
Methods inherited from class org.jruby.RubyNumeric |
---|
asNumeric, callCoerced, callCoerced, checkInt, coerceBin, coerceBody, coerceCmp, coerceRelOp, createNumericClass, dbl_cmp, dbl2num, div, doCoerce, fix2int, fix2long, getCoerced, init_copy, int_p, int2fix, modulo, newNumeric, nonzero_p, num2dbl, num2fix, num2int, num2long, quo, remainder, sadded, step, str2fnum, str2fnum, str2inum, str2inum, to_int, uplus |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RubyFloat(Ruby runtime)
public RubyFloat(Ruby runtime, double value)
Method Detail |
---|
public static RubyClass createFloatClass(Ruby runtime)
public int getNativeTypeIndex()
RubyObject
getNativeTypeIndex
in interface IRubyObject
getNativeTypeIndex
in class RubyObject
public java.lang.Class getJavaClass()
IRubyObject
getJavaClass
in interface IRubyObject
getJavaClass
in class RubyObject
public double getValue()
public double getDoubleValue()
getDoubleValue
in class RubyNumeric
public long getLongValue()
getLongValue
in class RubyNumeric
public RubyFloat convertToFloat()
convertToFloat
in interface IRubyObject
convertToFloat
in class RubyObject
protected int compareValue(RubyNumeric other)
public static RubyFloat newFloat(Ruby runtime, double value)
public static IRubyObject induced_from(IRubyObject recv, IRubyObject number)
public IRubyObject to_s()
to_s
in class RubyObject
public IRubyObject coerce(IRubyObject other)
coerce
in class RubyNumeric
public IRubyObject uminus()
uminus
in class RubyNumeric
public IRubyObject plus(IRubyObject other)
public IRubyObject minus(IRubyObject other)
public IRubyObject mul(IRubyObject other)
public IRubyObject fdiv(IRubyObject other)
public IRubyObject mod(IRubyObject other)
public IRubyObject divmod(IRubyObject other)
divmod
in class RubyNumeric
public IRubyObject pow(IRubyObject other)
public IRubyObject equal(IRubyObject other)
equal
in interface IRubyObject
equal
in class RubyNumeric
public IRubyObject cmp(IRubyObject other)
cmp
in class RubyNumeric
public IRubyObject gt(IRubyObject other)
public IRubyObject ge(IRubyObject other)
public IRubyObject lt(IRubyObject other)
public IRubyObject le(IRubyObject other)
public IRubyObject eql_p(IRubyObject other)
eql_p
in class RubyNumeric
public RubyFixnum hash()
hash
in class RubyObject
public final int hashCode()
hashCode
in class RubyObject
public IRubyObject to_f()
public IRubyObject abs()
abs
in class RubyNumeric
public IRubyObject zero_p()
zero_p
in class RubyNumeric
public IRubyObject truncate()
truncate
in class RubyNumeric
public IRubyObject floor()
floor
in class RubyNumeric
public IRubyObject ceil()
ceil
in class RubyNumeric
public IRubyObject round()
round
in class RubyNumeric
public IRubyObject nan_p()
public IRubyObject infinite_p()
public IRubyObject finite_p()
public static void marshalTo(RubyFloat aFloat, MarshalStream output) throws java.io.IOException
java.io.IOException
public static RubyFloat unmarshalFrom(UnmarshalStream input) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |