A custom float with extra metadata that is useful for units. More...
Public Member Functions | |
| def | __new__ (self, value, name, dimension) |
| def | __init__ (self, value, name, dimension) |
| def | value (self) |
| def | __str__ (self) |
| def | __repr__ (self) |
Public Attributes | |
| name | |
| dimension | |
A custom float with extra metadata that is useful for units.
This subclass of float adds meta data for the name of the unit and the dimension that it applies to.