function INT, Num ;+ ; NAME: ; INT ; ; PURPOSE: ; This function returns the integer closest to zero that is ; within 1.0 of the number. ; ; CATEGORY: ; Comet Nucleus Tour CRISP IR Spectrometer calibration pipeline. ; ; CALLING SEQUENCE: ; ; x=int(Num) ; ; INPUTS: ; Num: The number to truncate. ; ; OUTPUTS: ; This function returns the integer closest to zero that is ; within 1.0 of the number. ; ; EXAMPLE: ; print, INT(-10.5) ; -10 ; ; MODIFICATION HISTORY: ; Written by: Joseph Harrington, Cornell. 1994 Jun 3 ; jh@oobleck.astro.cornell.edu ;- if num < 0. then begin return, ceil(num) endif else begin return, floor(num) endelse end