<<prev file | next file >>    view single page | view frames    summary: fields | routine    details: routine

ToBeReviewed/STRING/

isnumber.pro

topisnumber

result = isnumber(txt0, x, help=help)

NAME: ISNUMBER PURPOSE: Determine if a text string is a valid number. CATEGORY: CALLING SEQUENCE: i = isnumber(txt, [x]) INPUTS: txt = text string to test. in KEYWORD PARAMETERS: OUTPUTS: x = optionaly returned numeric value if valid. out i = test flag: out 0: not a number. 1: txt is a long integer. 2: txt is a float. -1: first word of txt is a long integer. -2: first word of txt is a float. COMMON BLOCKS: NOTES: MODIFICATION HISTORY: R. Sterner. 15 Oct, 1986. Johns Hopkins Applied Physics Lab. R. Sterner, 12 Mar, 1990 --- upgraded. Richard Garrett, 14 June, 1992 --- fixed bug in returned float value. R. Sterner, 1999 Nov 30 --- Fixed a bug found by Kristian Kjaer, Denmark 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.

Parameters

txt0       

x       

Keywords

help       

Produced by IDLdoc 2.0.