-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
There's discussion starting #9 (comment) about unit conversion and the methods.
in short:
What should the name of a unit conversion function that returns a quantity be?
Potential names:
asquantity(quantity, new_unit)
could be used but would combine initialising and conversion in the same function.asunit
could be expected to return a unit.convert
has debateable concerns over name collision.uconvert
isn't a nice nameconvert_quantity
is my suggestion, including the return type in the name.
Should a unit conversion function that returns the value exist, and what should it be named?
- The aforementioned function could be used, and then use
Quantity.value
, so this doesn't need to exist in the initial release.
Potential names: uconvert_value
convert_value
is my suggestion
Should a general function exist for converting between units? ie convert(unit1, unit2, value)