[CentralOH] Arithmetic With Units
Morgan Goose
morgan.goose at gmail.com
Thu Oct 27 22:09:04 CEST 2011
http://pypi.python.org/pypi/units/ (first hit on google, could be
good, could be only ok)
- goose
On Thu, Oct 27, 2011 at 1:01 PM, <jep200404 at columbus.rr.com> wrote:
> What Python packages handle arithmetic with units?
> In other words, what package would do something like below:
>
>>>> d = Foo(176.0, 'feet')
>>>> t = Foo(2.0, 's')
>>>> speed = d / t
>>>> print speed
> 88.0 feet/s
>>>> a = 2.0 * d / (t ** 2)
>>>> print a
> 88.0 feet/s^2
>
> _______________________________________________
> CentralOH mailing list
> CentralOH at python.org
> http://mail.python.org/mailman/listinfo/centraloh
>
More information about the CentralOH
mailing list