commonpower.modeling.util.SubscriptableFloat
- class SubscriptableFloat(x=0, /)[source]
Bases:
floatThis is a dummy class to “fake” the behaviour of a model element when extracting the signature from a constraint/cost expression.
Methods
as_integer_ratioReturn integer ratio.
conjugateReturn self, the complex conjugate of any float.
fromhexCreate a floating-point number from a hexadecimal string.
hexReturn a hexadecimal representation of a floating-point number.
is_indexedis_integerReturn True if the float is an integer.
Attributes
imagthe imaginary part of a complex number
lbrealthe real part of a complex number
ub