Top
Back: deleteGenerator
Forward: sortIntvec
FastBack:
FastForward:
Up: dmodapp_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document
7.5.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


Top Back: deleteGenerator Forward: sortIntvec FastBack: FastForward: Up: dmodapp_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4.3.1, 2022, generated by texi2html.