| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | DBL_MANT_DIG
float_to_r, float_decode |
| public static final int | |
| public static final double | |
| public static final int | |
| public static final double | |
| private static final ByteList | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final double | |
| private static final ByteList | |
| public static final ByteList | |
| private static final ByteList | |
| public static final ByteList | |
| public static final ByteList | |
| public static final int | |
| public static final int | |
| pack-priv final double |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public IRubyObject | |
| public void | |
| 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 IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public final int | compareTo(IRubyObject
another IRubyObject other)Overrides org. Implements java. Compares this Ruby object with another. |
| public RubyFloat | convertToFloat()
Overrides org. Implements org. Tries to convert this object to a Ruby Float using the "to_f" method. |
| public RubyInteger | convertToInteger()
Overrides org. Implements org. Tries to convert this object to a Ruby Integer using the "to_int" method. |
| public static RubyClass | |
| public IRubyObject | |
| public IRubyObject | |
| private static double | |
| public final boolean | eql(IRubyObject other)
Overrides org. Implements org. short circuit for Float key comparison |
| public IRubyObject | |
| public IRubyObject | Returns: true if this Float and the given object are effectively identical, false otherwisethe current context context, IRubyObject the object with which to compare obj)Overrides org. Compare this Float object with the given object and determine whether they are effectively identical. |
| public boolean | equals(Object
object to compare other)Overrides org. This override does not do a "checked" dispatch. |
| private boolean | |
| public boolean | |
| public IRubyObject | |
| public IRubyObject | |
| private static long | |
| private IRubyObject | floatRoundByRational(ThreadContext context, IRubyObject ndigits, RoundingMode mode)
rb_flo_round_by_rational |
| private static boolean | |
| private static boolean | |
| private static boolean | Returns: true of the value can be represented as a "flonum", false otherwisethe double value in question value)Determine if the given double value is representable as a "flonum", a bit-manipulated version of itself that emulates the CRuby "flonum" tagged pointer. |
| private static boolean | Returns: true if the double is in the non-zero "flonum" range, false otherwisethe bits of the double in question longBits)Determine if the given double bits are in the "flonum" range, excluding positive zero. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| 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 double | |
| public RubyFixnum | hash(ThreadContext
the current thread context context)Overrides org. Will return the hash code of this object. |
| public final int | hashCode()
Overrides org. This override does not do "checked" dispatch since Object usually has #hash defined. |
| public IRubyObject | Returns: the object ID for this FloatOverrides org. Implements org. Produce an object ID for this Float. |
| public static IRubyObject | induced_from(ThreadContext context, IRubyObject recv, IRubyObject number)
Deprecated
rb_flo_induced_from |
| public IRubyObject | |
| public IRubyObject | |
| public boolean | |
| public boolean | |
| public IRubyObject | |
| public boolean | |
| public IRubyObject | |
| public boolean | |
| public final boolean | |
| public IRubyObject | |
| private ByteList | |
| public static void | |
| public static void | |
| public IRubyObject | |
| public IRubyObject | |
| public static RubyFloat | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | op_equal(ThreadContext context, IRubyObject other)
Overrides org. Implements org. flo_eq |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | op_minus(ThreadContext context, IRubyObject other)
Overrides org. flo_minus |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private static boolean | Returns: true of the bits represent positive zero, false otherwisethe bits of the double in question longBits)Determine of the given double bits represent positive zero. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private static double | |
| private static double | |
| private static double | |
| private static double | |
| public IRubyObject | |
| public int | |
| 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 | |
| public IRubyObject | |
| public IRubyObject | |
| private RubyInteger | |
| public IRubyObject | |
| public IRubyObject | |
| public static RubyFloat | |
| public static RubyFloat | |
| public IRubyObject | |
| public IRubyObject |