isnum

From DavinciWiki
Jump to: navigation, search

Description

Test for numeric input.

Arguments and Return Values

Arguments: Single input (any format)

Return Value: 1 if input is numeric (byte, short, int, float, or double); 0 otherwise

If no arguments are input, isnum() prints its description, as shown below.

Usage

Syntax: isnum(x)

'x' - anything

Examples

dv> isnum()

Returns 1 if input is numeric (any format), 0 if not
S.Marshall 12-06-2007

0
dv> isnum(1//2//3)
1
dv> isnum(pi)
1
dv> isnum("Hello world!")
0

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Major Sub-Functions

Related Functions

Recent Library Changes

Created On: 12-07-2007
Modified On: 06-24-2008

Personal tools