Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1488 |
|
Package | general | |
Module | quanta | |
Tool | quanta |
v | in | quantity to convert | |
Allowed: | quantity or string | ||
Default: | '1' | ||
out | in | unit to convert to | |
Allowed: | string or quantity | ||
Default: | '' |
- tu := dq.quantity('5Mm/s') # specify a quantity - tu [value=5, unit=Mm/s] - dq.convert(tu, 'pc/a') # convert it to parsec per year [value=0.00511356, unit=pc/a] - dq.convert(tu) # convert to canonical units [value=5e+06, unit=m.s-1]