A class representing a value and an associated unit, capable of
doing conversions to base SI units.
Methods
|
|
Convert
__float__
__init__
__str__
|
|
Convert
|
Convert ( raw )
Take a raw unit, do any necessary conversions, extract
prefixes, and convert it to a 2-tuple of the converted value
and the base unit.
@staticmethod
|
|
__float__
|
__float__ ( self )
|
|
__init__
|
__init__ (
self,
value,
unit=None,
)
|
|
__str__
|
__str__ ( self )
|
|