ValueFloat¶
- class dsviper.ValueFloat(initial_value=None)¶
Bases:
objectA class used to represent a value of type float. Seamless with a Python float.
Or use Value.create(Type.FLOAT [, initial_value]).
- ONE = 1.0¶
- ZERO = 0.0¶
- static cast(value: Value) ValueFloat¶
Return a float or raise.
- copy() ValueFloat¶
Return a deep copy.
- encoded() float¶
Return a Python float.
- hash() int¶
Return the hash value.
- representation() str¶
Return the representation.
- static try_parse(string: str) ValueFloat | None¶
Return a float or None.
- type_code() str¶
Return the type code.