float object.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | PyFloat.Derived
Instances in Python of sub-classes of 'float', are represented in Java by instances of this class. |
| public static enum | |
| pack-priv static class | PyFloat.Formatter
A |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| pack-priv static final String | DIV_ZERO
Used as error message text for division by zero. |
| public static volatile PyFloat. | |
| private static final long | |
| private static final int | |
| private static final int | |
| public static volatile PyFloat. | |
| private static final long | |
| private static double | INT_LONG_BOUNDARY
Smallest value that cannot be represented as an int |
| pack-priv static final String | MOD_ZERO
Used as error message text for modulo zero. |
| pack-priv static final Double | NAN
A constant Python |
| pack-priv static final Double | ONE
A constant Python |
| private static final long | |
| private static final long | |
| private static final int | |
| pack-priv static final InternalFormat. | SPEC_REPR
Format specification used by repr(). |
| pack-priv static final InternalFormat. | SPEC_STR
Format specification used by str(). |
| public static final PyType | TYPE
The type |
| pack-priv final double | value
Value of this |
| pack-priv static final Double | ZERO
A constant Python |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Object | |
| pack-priv static final Object | |
| pack-priv static final Object | |
| pack-priv final PyTuple | |
| pack-priv static final PyTuple | |
| pack-priv final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv final Object | |
| pack-priv static final Object | |
| private static final Object | |
| pack-priv static Object | |
| pack-priv static final String | |
| pack-priv static Object | |
| pack-priv static final String | |
| pack-priv final Object | |
| pack-priv static final Object | |
| pack-priv final PyTuple | |
| pack-priv static final PyTuple | |
| private static PyTuple | |
| pack-priv static double | |
| pack-priv static BigInteger | Returns: BigInteger equivalent.to convert value)Convert a Java |
| private static OverflowError | |
| private static ValueError | |
| pack-priv final Object | |
| pack-priv static final Object | |
| pack-priv static double | Returns: converted todoubleto convert v)Convert a Python |
| pack-priv static final PyTuple | Returns: tuple of (x//y, x%y)operand x, double operand y)Inner method for |
| public static double | Returns: double valueclaimed v)floatPresent the value as a Java |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public static String | |
| public static void | |
| public static Object | |
| public Object | |
| pack-priv static final double | Returns: x//yoperand x, double operand y)Inner method for |
| private static String | Returns: formatted valueto format value, InternalFormat.parsed format specification string specFormat this float according to the specification passed in.
Supports |
| public Object | |
| public Object | |
| public double | |
| public int | |
| pack-priv final boolean | |
| pack-priv static final boolean | |
| pack-priv static final boolean | |
| pack-priv static final double | |
| private static double | |
| pack-priv static double | Returns: vvalue to check is not zero v, String for exception if msg)v==0.0Convenience function to throw a |
| pack-priv static double | Returns: vvalue to check is not zero v)Convenience function to throw a |
| pack-priv static double | |
| private String | |
| private static boolean | Returns: if signs equal (works for signed zeros, etc.)a double u, double another double v)Test that two |
| public String | toString()
Overrides org. |
| CANNOT_CONVERT | back to summary |
|---|---|
| private static final String CANNOT_CONVERT | |
| DIV_ZERO | back to summary |
|---|---|
| pack-priv static final String DIV_ZERO Used as error message text for division by zero. | |
| double_format | back to summary |
|---|---|
| public static volatile PyFloat. | |
| EXPONENT | back to summary |
|---|---|
| private static final long EXPONENT | |
| EXPONENT_BIAS | back to summary |
|---|---|
| private static final int EXPONENT_BIAS | |
| EXPONENT_BITS | back to summary |
|---|---|
| private static final int EXPONENT_BITS | |
| float_format | back to summary |
|---|---|
| public static volatile PyFloat. | |
| IMPLIED_ONE | back to summary |
|---|---|
| private static final long IMPLIED_ONE | |
| INT_LONG_BOUNDARY | back to summary |
|---|---|
| private static double INT_LONG_BOUNDARY Smallest value that cannot be represented as an int | |
| MOD_ZERO | back to summary |
|---|---|
| pack-priv static final String MOD_ZERO Used as error message text for modulo zero. | |
| NAN | back to summary |
|---|---|
| pack-priv static final Double NAN A constant Python | |
| ONE | back to summary |
|---|---|
| pack-priv static final Double ONE A constant Python | |
| SIGN | back to summary |
|---|---|
| private static final long SIGN | |
| SIGNIFICAND | back to summary |
|---|---|
| private static final long SIGNIFICAND | |
| SIGNIFICAND_BITS | back to summary |
|---|---|
| private static final int SIGNIFICAND_BITS | |
| SPEC_REPR | back to summary |
|---|---|
| pack-priv static final InternalFormat. Format specification used by repr(). | |
| SPEC_STR | back to summary |
|---|---|
| pack-priv static final InternalFormat. Format specification used by str(). | |
| TYPE | back to summary |
|---|---|
| public static final PyType TYPE The type | |
| value | back to summary |
|---|---|
| pack-priv final double value Value of this | |
| ZERO | back to summary |
|---|---|
| pack-priv static final Double ZERO A constant Python | |
| PyFloat | back to summary |
|---|---|
| pack-priv PyFloat(PyType type, double value) Constructor for Python sub-class specifying
| |
| PyFloat | back to summary |
|---|---|
| public PyFloat(double v) | |
| PyFloat | back to summary |
|---|---|
| public PyFloat(float v) | |
| __float__ | back to summary |
|---|---|
| pack-priv Object __float__() | |
| __float__ | back to summary |
|---|---|
| pack-priv static final Object __float__(Double self) | |
| __format__ | back to summary |
|---|---|
| pack-priv static final Object __format__(Object self, Object formatSpec) | |
| __getnewargs__ | back to summary |
|---|---|
| pack-priv final PyTuple __getnewargs__() | |
| __getnewargs__ | back to summary |
|---|---|
| pack-priv static final PyTuple __getnewargs__(Double self) | |
| __hash__ | back to summary |
|---|---|
| pack-priv final int __hash__() | |
| __hash__ | back to summary |
|---|---|
| pack-priv static final int __hash__(Double self) | |
| __hash__ | back to summary |
|---|---|
| pack-priv static final int __hash__(double value) | |
| __int__ | back to summary |
|---|---|
| pack-priv final Object __int__() | |
| __int__ | back to summary |
|---|---|
| pack-priv static final Object __int__(Double self) | |
| __int__ | back to summary |
|---|---|
| private static final Object __int__(double v) | |
| __pow__ | back to summary |
|---|---|
| pack-priv static Object __pow__(Object left, Object right, Object modulus) | |
| __repr__ | back to summary |
|---|---|
| pack-priv static final String __repr__(Object self) | |
| __rpow__ | back to summary |
|---|---|
| pack-priv static Object __rpow__(Object right, Object left) | |
| __str__ | back to summary |
|---|---|
| pack-priv static final String __str__(Object self) | |
| __trunc__ | back to summary |
|---|---|
| pack-priv final Object __trunc__() | |
| __trunc__ | back to summary |
|---|---|
| pack-priv static final Object __trunc__(Double self) | |
| as_integer_ratio | back to summary |
|---|---|
| pack-priv final PyTuple as_integer_ratio() | |
| as_integer_ratio | back to summary |
|---|---|
| pack-priv static final PyTuple as_integer_ratio(Double self) | |
| as_integer_ratio | back to summary |
|---|---|
| private static PyTuple as_integer_ratio(double value) | |
| asDouble | back to summary |
|---|---|
| pack-priv static double asDouble(Object o) throws TypeError, Throwable Convert the argument to a Java | |
| bigIntegerFromDouble | back to summary |
|---|---|
| pack-priv static BigInteger bigIntegerFromDouble(double value) throws OverflowError, ValueError Convert a Java
| |
| cannotConvertInf | back to summary |
|---|---|
| private static OverflowError cannotConvertInf(String to) | |
| cannotConvertNaN | back to summary |
|---|---|
| private static ValueError cannotConvertNaN(String to) | |
| conjugate | back to summary |
|---|---|
| pack-priv final Object conjugate() | |
| conjugate | back to summary |
|---|---|
| pack-priv static final Object conjugate(Double self) | |
| convertToDouble | back to summary |
|---|---|
| pack-priv static double convertToDouble(Object v) throws NoConversion, OverflowError Convert a Python
If the method throws the special non-Python exception
| |
| divmod | back to summary |
|---|---|
| pack-priv static final PyTuple divmod(double x, double y) Inner method for
| |
| doubleValue | back to summary |
|---|---|
| public static double doubleValue(Object v) throws TypeError Present the value as a Java | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| float___getformat__ | back to summary |
|---|---|
| public static String float___getformat__(PyType type, String typestr) | |
| float___setformat__ | back to summary |
|---|---|
| public static void float___setformat__(PyType type, String typestr, String format) | |
| float_fromhex | back to summary |
|---|---|
| public static Object float_fromhex(PyType type, Object o) | |
| float_hex | back to summary |
|---|---|
| public Object float_hex() | |
| floordiv | back to summary |
|---|---|
| pack-priv static final double floordiv(double x, double y) Inner method for
| |
| formatDouble | back to summary |
|---|---|
| private static String formatDouble(double value, InternalFormat. Format this float according to the specification passed in.
Supports
formatted value | |
| getImag | back to summary |
|---|---|
| public Object getImag() | |
| getReal | back to summary |
|---|---|
| public Object getReal() | |
| getValue | back to summary |
|---|---|
| public double getValue() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| is_integer | back to summary |
|---|---|
| pack-priv final boolean is_integer() | |
| is_integer | back to summary |
|---|---|
| pack-priv static final boolean is_integer(Double self) | |
| is_integer | back to summary |
|---|---|
| pack-priv static final boolean is_integer(double self) | |
| mod | back to summary |
|---|---|
| pack-priv static final double mod(double x, double y) Inner method for
| |
| modulo | back to summary |
|---|---|
| private static double modulo(double x, double y) Python % operator: y = n*x + z. The modulo operator always yields
a result with the same sign as its second operand (or zero).
(Compare
| |
| nonzero | back to summary |
|---|---|
| pack-priv static double nonzero(double v, String msg) Convenience function to throw a
| |
| nonzero | back to summary |
|---|---|
| pack-priv static double nonzero(double v) Convenience function to throw a
| |
| pow | back to summary |
|---|---|
| pack-priv static double pow(double v, double w) Exponentiation with Python semantics.
| |
| pyHexString | back to summary |
|---|---|
| private String pyHexString(Double f) | |
| sameSign | back to summary |
|---|---|
| private static boolean sameSign(double u, double v) Test that two
if signs equal (works for signed zeros, etc.) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object. | |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public Map | getDict()
Implements org. dict or
writable.
|
| Derived | back to summary |
|---|---|
| protected Derived(PyType subType, double value) | |
| getDict | back to summary |
|---|---|
| public Map Implements org. Doc from org. The dictionary of the instance, (not necessarily a Python | |
| Modifier and Type | Field and Description |
|---|---|
| public static final PyFloat. | |
| private final String | |
| public static final PyFloat. | |
| public static final PyFloat. |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public static PyFloat. | |
| public static PyFloat. |
| BE | back to summary |
|---|---|
| public static final PyFloat. | |
| format | back to summary |
|---|---|
| private final String format | |
| LE | back to summary |
|---|---|
| public static final PyFloat. | |
| UNKNOWN | back to summary |
|---|---|
| public static final PyFloat. | |
| Format | back to summary |
|---|---|
| private Format(String format) | |
| format | back to summary |
|---|---|
| public String format() | |
| valueOf | back to summary |
|---|---|
| public static PyFloat. | |
| values | back to summary |
|---|---|
| public static PyFloat. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | Formatter(InternalFormat.
a parsed format specification. spec,Prepare a |
| pack-priv | Formatter(InternalFormat.
a parsed PEP-3101 format specification. spec |
| Modifier and Type | Method and Description |
|---|---|
| public FloatFormatter | format(Object
to format o)Implements abstract org. |
| private static InternalFormat. | Returns: validated spec with defaults filledto validate spec,Validations and defaults specific to |
| printf | back to summary |
|---|---|
| pack-priv final boolean printf If | |
| Formatter | back to summary |
|---|---|
| pack-priv Formatter(InternalFormat. Prepare a
| |
| Formatter | back to summary |
|---|---|
| pack-priv Formatter(InternalFormat. Prepare a
| |
| format | back to summary |
|---|---|
| public FloatFormatter format(Object o) throws NoConversion, FormatError Implements abstract org. Doc from org. Format an object into the buffer according to the specification with which this instance has been initialised. The specific behaviour, and the acceptable types, are for a sub-class to define. Also, it is usually desirable for the return type in an implementing class to be a more specific.
| |
| validated | back to summary |
|---|---|
| private static InternalFormat. Validations and defaults specific to
| |