pyds.BasedInteger

class pyds.BasedInteger(radix, digits, units=None)

Bases: pyds.Numeric

Represents a PDS based integer value.

Parameters
  • radix (int)

    Base of the integer.

  • digits (str)

    The digits of the integer in base radix.

  • units (None or Units)

    The units associated with the integer.

Raises
Attributes
radix

Base of the integer. A int instance. Read-only.

digits

Digits of the integer. A str instance. Read-only.

value

Value of the integer in base 10. A int instnace. Read-only.

units

Units associated with the integer. A str instance. Read-only.


Special Methods

BasedInteger.__int__()

Return value as an int.

BasedInteger.__float__()

Return value as a float.

BasedInteger.__str__()

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

Called by str().