Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1488 |
|
Package | general | |
Module | quanta | |
Tool | quanta |
v | in | value to convert to quantity | |
Allowed: | quantity or string or numeric | ||
Default: | '1' or 1.0 | ||
name | in | unit string if v numeric | |
Allowed: | string | ||
Default: | '' |
- tu := dq.quantity('1Jy') # make quantity - tu [value=1, unit=Jy] - dq.quantity(tu) # also accepts a quantity [value=1, unit=Jy] - tu := dq.unit('1Jy') # make quantity with synonym - tu [value=1, unit=Jy] - dq.quantity(-1.3, 'Jy') # make quantity with separate value [value=-1.3, unit=Jy]