isnum

From DavinciWiki
(Difference between revisions)
Jump to: navigation, search
m (Added "isscalar" to list of related functions)
m (Added to "Davinci Variable Information" category)
 
Line 39: Line 39:
 
[[category:Functions]]
 
[[category:Functions]]
 
[[category:User Defined Functions]]
 
[[category:User Defined Functions]]
 +
[[category:Davinci Variable Information]]
 
[[category:Math]]
 
[[category:Math]]

Latest revision as of 09:24, 24 June 2008


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