Documentation for /home/davin/idl/socware/

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

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

top source nearest

result = nearest(s, t, vlo, vhi, help=help)

Parameters

s
t
vlo
vhi

Keywords

help

File attributes

Modification date: Thu Feb 13 16:41:50 2014
Lines: 18