external/CDAWlib/jh/
nearest.pro
NAME: NEAREST PURPOSE: Return multiple of a given step nearest a target value. CATEGORY: CALLING SEQUENCE: v = nearest( s, t, [ vlo, vhi ]) INPUTS: s = step size. in t = target value. in KEYWORD PARAMETERS: OUTPUTS: vlo = largest multiple of S <= T. out vhi = smallest multiple of S >= T. out v = multiple of S nearest T. out COMMON BLOCKS: NOTES: MODIFICATION HISTORY: R. Sterner 10 Apr, 1986. Johns Hopkins University Applied Physics Laboratory. R. Sterner 2005 Apr 12 --- Upgraded to work for big numbers. Copyright (C) 1986, Johns Hopkins University/Applied Physics Laboratory This software may be used, copied, or redistributed as long as it is not sold and this copyright notice is reproduced on each copy made. This routine is provided as is without any express or implied warranties whatsoever. Other limitations apply as described in the file disclaimer.txt.
Routines
File attributes
Modification date: | Thu Feb 13 16:41:50 2014 |
Lines: | 18 |