nraonrao
 
NRAO Home > CASA > CasaRef
quanta.neg - Function

1.4.1 negate quantities
Description

neg negates a quantity

Arguments





Inputs

v

value

allowed:

variant

Default:

1

Returns
record

Example

"""  
#  
print "\t----\t neg Ex 1 \t----"  
print qa.neg(’5m’)  
#{’value’: -5.0, ’unit’: ’m’}  
#  
"""

Please send any comments or questions about CASA or AIPS++ to aips2-requests@nrao.edu

Copyright © 2008 Associated Universities Inc., Washington, D.C.

This code is available under the terms of the GNU General Public Lincense


Home | Contact Us | Directories | Site Map | Help | Privacy Policy | Search

Updated daily during alpha development.