ValueFloat

class dsviper.ValueFloat(initial_value=None)

Bases: object

A 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.

description(*, namespace: NameSpace | None = None) str

Return the description.

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() Type

Return the type.

type_code() str

Return the type code.