### The Maxima on-line user's manual

Algebra Calculator

#### Integerp

Function: integerp (<expr>) Returns true if <expr> is a literal numeric integer, otherwise false.

integerp returns false if its argument is a symbol, even if the argument is declared integer.

Examples:

(%i1) integerp (0);
(%o1)                         true
(%i2) integerp (1);
(%o2)                         true
(%i3) integerp (-17);
(%o3)                         true
(%i4) integerp (0.0);
(%o4)                         false
(%i5) integerp (1.0);
(%o5)                         false
(%i6) integerp (%pi);
(%o6)                         false
(%i7) integerp (n);
(%o7)                         false
(%i8) declare (n, integer);
(%o8)                         done
(%i9) integerp (n);
(%o9)                         false

There are also some inexact matches for integerp. Try ?? integerp to see them.

(%o1)                                true
(%i2)

### Related Examples

integerp (1.0);

Calculate

##### integerp-log

( ans: x^1, exponen...

Calculate

##### integerp-lambda-nonnegintegerp-polynomialp-true

genp: lambda([x],true);

polynomialp(a*x^(1/2)...

integerp(1/2);

Calculate

##### integerp

a:0.12345*10*10*10*10...

integerp(a);

truncate(a);

Calculate

##### integerp

a:0.12345*10*10*10*10...

integerp(a);

truncate(a);

Calculate

##### integerp

a:0.12345*10*10*10*10...

integerp(a);

truncate(a);

Calculate

Calculate

##### integerp-lambda-makelist-setify-sqrt-subset

subset(setify(makelis...

Calculate

##### integerp

a:0.12345*10*10*10*10;

integerp(a);

Calculate

##### integerp

a:0.12345*10*10*10*10...

integerp(a);

truncate(a);

Calculate