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.getunit - Function Up: quanta - Tool Previous: quanta.quantity - Function


quanta.getvalue - Function



Package general
Module quanta
Tool quanta


get the internal value of a quantity


Synopsis
getvalue(v)


Arguments

v in quantity
    Allowed: quantity or string or numeric


Returns
numeric scalar or array


Description
getvalue returns the internal value of a quantity. It also can handle an array of quantities.



Example
- tu := dq.quantity(-1.3, 'Jy')         # make quantity
- tu
[value=-1.3, unit=Jy] 
- dq.getvalue(tu)
-1.3 
- dq.getunit(tu)
Jy 
- a := dq.quantity("5m/s 7A")
- a::
[id=quant, shape=2] 
- dq.getvalue(a)
[5 7]





next up previous contents index
Next: quanta.getunit - Function Up: quanta - Tool Previous: quanta.quantity - 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