isint

From DavinciWiki
Jump to: navigation, search

Description

Test for integer input.

Arguments and Return Values

Arguments: A single input (any format)

Return Value: 1 if all elements of input are integers (integer values, not necessarily integer format)

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

Usage

Syntax: isint(x)

'x' - anything

Examples

dv> isint()

Returns 1 if all elements of input are integers (in any format), 0 if not
Works for arrays
S.Marshall 02-15-2008

0
dv> isint(0//1//2//3)
1
dv> isint(pi)
0
dv> isint(log10(100))
1
dv> isint(2.)
1

dv> isint("Hello world!")

Input must be numeric

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-08-2007
Modified On: 06-24-2008

Personal tools