Home Online Manual
Top
Back: engine
Forward: sortIntvec
FastBack:
FastForward:
Up: dmodapp_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document
7.7.5.0. isInt
Procedure from library dmodapp.lib (see dmodapp_lib).

Usage:
isInt(n); n a number

Return:
int, 1 if n is an integer or 0 otherwise

Purpose:
check whether given object of type number is actually an int

Note:
Parameters are treated as integers.

Example:
 
LIB "dmodapp.lib";
ring r = 0,x,dp;
number n = 4/3;
isInt(n);
==> 0
n = 11;
isInt(n);
==> 1