pyds.Real

class pyds.Real(value, units=None)

Bases: pyds.Numeric

Represents a PDS real value.

Parameters
  • value (float)

    Value of the real number.

  • units (none or Units)

    Units associated with the real number.

Raises
Attributes
value

Value of the real number. A float instance. Read-only.

units

Units associated with the real number. A str: instance. Read-only.


Special Methods

Real.__int__()

Return value as an int.

Real.__float__()

Return value as a float.

Real.__str__()

Return a PDS serialized string (str) representing the object.

Called by str().