Skip to content
Back to top
View this page

# ValueDouble

class dsviper.ValueDouble(initial_value=None)

  Bases: `object`

  A class used to represent a value of type double. Seamless with a Python float.

  Or use Value.create(Type.DOUBLE [, initial_value])

  INF = inf
  NAN = nan
  NEG_INF = -inf
  ONE = 1.0
  ZERO = 0.0
  static cast(value: Value) → ValueDouble

    Return a double or raise.

  copy() → ValueDouble

    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) → ValueDouble | None

    Return a double or None.

  type() → Type

    Return the type.

  type_code() → str

    Return the type code.