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


next up previous contents index
Next: r_array - Function Up: quanta - Module Previous: quanta - Module


is_quantity - Function



Package general
Module quanta


Check if quantity


Synopsis
is_quantity(v)


Arguments

v in value to be tested
    Allowed: any


Returns
Bool


Description
Checks if the operand is a correct quantity



Example
- a := dq.quantity("5Jy")		# make a quantity
- a
[value=5, unit=Jy] 
- is_quantity(a)			# is it one?
T 
- is_quantity("5Jy")			# and this string?
F





next up previous contents index
Next: r_array - Function Up: quanta - Module Previous: quanta - Module   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