Next / Previous / Contents / Shipman's homepage

7.2. MixedValue.__float__()

To convert a mixed value back to a single value in terms of its largest units, use the ordinary Python float() function. For example:

>>> twoThirty = MixedValue((60,60), (2, 30))
>>> float(twoThirty)
2.5