Class PythonFloat
java.lang.Object
ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
ai.timefold.jpyinterpreter.types.numeric.PythonFloat
- All Implemented Interfaces:
PythonLikeObject,Coercible,PythonNumber,PythonLikeComparable<PythonNumber>,PlanningImmutable,Comparable<PythonNumber>
public class PythonFloat
extends AbstractPythonLikeObject
implements PythonNumber, PlanningImmutable, Coercible
-
Field Summary
FieldsFields inherited from class ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
OBJECT_TYPEFields inherited from interface ai.timefold.jpyinterpreter.types.numeric.PythonNumber
INFINITY_HASH_VALUE, MODULUS, NUMBER_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription$method$__format__(PythonLikeObject specObject) abs()add(PythonLikeObject other) add(PythonFloat other) add(PythonInteger other) asFloat()ceilDivide(PythonFloat other) ceilDivide(PythonInteger other) <T> Tdivmod(PythonLikeObject other) divmod(PythonFloat other) divmod(PythonInteger other) booleanfloorDivide(PythonLikeObject other) floorDivide(PythonFloat other) floorDivide(PythonInteger other) format()static PythonFloatfrom(PythonLikeObject value) getValue()greaterThan(PythonLikeObject other) greaterThan(PythonFloat other) greaterThan(PythonInteger other) greaterThanOrEqual(PythonFloat other) greaterThanOrEqual(PythonInteger other) inthashCode()lessThan(PythonLikeObject other) lessThan(PythonFloat other) lessThan(PythonInteger other) lessThanOrEqual(PythonLikeObject other) lessThanOrEqual(PythonFloat other) lessThanOrEqual(PythonInteger other) modulo(PythonLikeObject other) modulo(PythonFloat other) modulo(PythonInteger other) multiply(PythonLikeObject other) multiply(PythonFloat other) multiply(PythonInteger other) negative()notEqual(PythonLikeObject other) notEqual(PythonFloat other) notEqual(PythonInteger other) power(PythonLikeObject other) power(PythonFloat other) power(PythonInteger other) pythonEquals(PythonLikeObject other) pythonEquals(PythonFloat other) pythonEquals(PythonInteger other) round()round(PythonInteger digitsAfterDecimal) subtract(PythonLikeObject other) subtract(PythonFloat other) subtract(PythonInteger other) toString()trueDivide(PythonLikeObject other) trueDivide(PythonFloat other) trueDivide(PythonInteger other) static PythonFloatvalueOf(double value) static PythonFloatvalueOf(float value) Methods inherited from class ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
$deleteAttribute, $getAttributeOrNull, $getType, $setAttribute, getExtraAttributeMap, setAttributeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ai.timefold.jpyinterpreter.types.PythonLikeComparable
greaterThan, greaterThanOrEqual, lessThan, lessThanOrEqualMethods inherited from interface ai.timefold.jpyinterpreter.PythonLikeObject
$deleteAttribute, $getAttributeOrError, $getAttributeOrNull, $getGenericType, $getType, $method$__delattr__, $method$__eq__, $method$__format__, $method$__getattribute__, $method$__ne__, $method$__repr__, $method$__setattr__, $setAttributeMethods inherited from interface ai.timefold.jpyinterpreter.types.numeric.PythonNumber
compareTo
-
Field Details
-
value
public final double value
-
-
Constructor Details
-
PythonFloat
public PythonFloat(double value)
-
-
Method Details
-
from
-
getValue
- Specified by:
getValuein interfacePythonNumber
-
asFraction
-
$method$__str__
- Specified by:
$method$__str__in interfacePythonLikeObject
-
toString
- Overrides:
toStringin classAbstractPythonLikeObject
-
equals
-
hashCode
public int hashCode() -
$method$__hash__
- Specified by:
$method$__hash__in interfacePythonLikeObject
-
valueOf
-
valueOf
-
asBoolean
-
asInteger
-
asFloat
-
negative
-
abs
-
add
-
add
-
add
-
subtract
-
subtract
-
subtract
-
multiply
-
multiply
-
multiply
-
trueDivide
-
trueDivide
-
trueDivide
-
floorDivide
-
floorDivide
-
floorDivide
-
ceilDivide
-
ceilDivide
-
modulo
-
modulo
-
modulo
-
divmod
-
divmod
-
divmod
-
round
-
round
-
power
-
power
-
power
-
pythonEquals
-
notEqual
-
lessThan
-
greaterThan
-
lessThanOrEqual
-
greaterThanOrEqual
-
pythonEquals
-
notEqual
-
lessThan
-
lessThanOrEqual
-
greaterThan
-
greaterThanOrEqual
-
pythonEquals
-
notEqual
-
lessThan
-
lessThanOrEqual
-
greaterThan
-
greaterThanOrEqual
-
format
-
$method$__format__
- Specified by:
$method$__format__in interfacePythonLikeObject
-
coerce
-