Next: isscalar() Up: MacAnova Help File Previous: isnumber()   Contents

isreal()

Usage:
isreal(arg1 [, arg2, ...] [,positive:T or negative:T or nonneg:T]\
  [,integer:T])



Keywords: macros, general, variables
                                  Usage
isreal(arg) returns True if arg is a REAL variable and False otherwise.
If arg is undefined, isreal() returns False.

isreal(arg, integer:T) does the same, except that True is returned only
if arg is REAL and all the values are integers.

isreal(arg, positive:T), isreal(arg, negative:T) and isreal(arg,
nonneg:T) do the same, except that True is returned only if arg is REAL
and all its elements have the indicated properties.  You can use
'integer:T' here as well.

                           Multiple arguments
isreal(arg1, arg2, ..., argk [keywords]) returns a LOGICAL vector, each
element of which is True or False depending on whether or not the
corresponding argument is REAL and satisfies the properties specified by
any keywords.

                                 Purpose
The principal use of isreal() is in checking the arguments of a macro
for appropriateness.  See argvalue() for another way to check for the
properties of macro arguments.

                                 Example
Example:
  Cmd> isreal("hello",3,T)  # returns vector(F,T,F).

                            Cross references
See also topics 'macros', isarray(), ischar(), isdefined(), isfactor(),
isfunction(), isgraph(), islogic(), ismacro(), ismatrix(), isname(),
isnull(), isnumber(), isscalar(), isstruc(), isvector().


Gary Oehlert 2005-08-12