ISNUMBER

Purpose:

Tests whether the input is a number.

Syntax:

ISNUMBER(val)

val

-

A series, scalar or string value to test.

Returns:

An integer, 1 or 0.

Example:

If a macro, GAIN, were defined as:

 

 #define gain mean(W1)

 isnumber(gain)

 

returns 1 since gain expands to mean(W1) which evaluates to a scalar.

 

If the macro, GAIN, were defined as:

 

 #define gain 'mean(W1)'

 isnumber(gain)

 

returns 0 since the macro gain is defined as the string: 'mean(W1)'.

Example:

a = 12;

b = "12";

 

isnumber(a) returns 1.

isnumber(b) returns 0.

See Also:

ISARRAY

ISSCALAR

ISSTRING

ISWINDOW

NUMSTR