function r2d, rads ;+ ; NAME: ; r2d ; ; PURPOSE: ; convert radians to degrees using the fewest characters ; typed on the command line. this function is for lazy ; typists. ; ; INPUTS: ; rads - angle in radians. ; ; OUTPUTS: ; the angle in degrees. output type is always double. ; ; EXAMPLE: ; angle = r2d(3.14159 / 2) ; ; MODIFICATION HISTORY: ; written 2005-11-11 by mikewong ;- return, rads*180d/!dpi end