Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1488
News FAQ
Search Home


next up previous contents index
Next: quanta.canonical - Function Up: quanta - Tool Previous: quanta.getvalue - Function


quanta.getunit - Function



Package general
Module quanta
Tool quanta


get the internal unit of a quantity


Synopsis
getunit(v)


Arguments

v in quantity
    Allowed: quantity or string or numeric


Returns
string scalar or array


Description
getunit returns the internal unit string of a quantity



Example
- tu := dq.quantity(-1.3, 'Jy')         # make quantity
- tu
[value=-1.3, unit=Jy] 
- dq.getvalue(tu)
-1.3 
- dq.getunit(tu)
Jy





next up previous contents index
Next: quanta.canonical - Function Up: quanta - Tool Previous: quanta.getvalue - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-08-01