cppio / units

Units and Values, including conversions, in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

units

Units and Values, including conversions, in Python

Usage Examples

All of the conversions come from conversions.txt.

$ python -m units
convert value: 3 cm
to unit: m
0.03 m
$ python -m units
convert value: 3 cm
to unit: s
no conversion found between 'cm' and 's'
$ python -m units
convert value: 3 m/s
to unit: km/h
10.799999999999999 km/h
$ python -m units
convert value: 1 A
to unit: C/s
1.0 C/s
$ python3 -m units
convert value: 1 ly/pc
to unit: 1
0.30660139378555057
$ python -m units
convert value: 1
to unit: kW*h/J
2.777777777777778e-07 h*kW/J
$ python -m units
convert value: 1 lb*ft^2/s^2
to unit: J
0.0421401100938048 J

About

Units and Values, including conversions, in Python

License:MIT License


Languages

Language:Python 100.0%