mirror of
https://github.com/lcn2/calc.git
synced 2025-08-19 01:13:27 +03:00
35 lines
634 B
Plaintext
35 lines
634 B
Plaintext
NAME
|
|
isint - whether a value is an integer
|
|
|
|
SYNOPSIS
|
|
isint(x)
|
|
|
|
TYPES
|
|
x any, &any
|
|
|
|
return int
|
|
|
|
DESCRIPTION
|
|
Determine if x is an integer. This function will return 1 if x is
|
|
integer, 0 otherwise.
|
|
|
|
EXAMPLE
|
|
> print isint(2.0), isint(1), isint("0")
|
|
1 1 0
|
|
|
|
> print isint(2i), isint(1e20), isint(1/3)
|
|
0 1 0
|
|
|
|
LIMITS
|
|
none
|
|
|
|
LIBRARY
|
|
none
|
|
|
|
SEE ALSO
|
|
int,
|
|
isassoc, isatty, isblk, isconfig, isdefined, iserror, iseven, isfile,
|
|
ishash, isident, islist, ismat, ismult, isnull, isnum, isobj,
|
|
isobjtype, isodd, isprime, isrand, israndom, isreal, isrel,
|
|
issimple, issq, isstr, istype
|