Josef Eschgfaeller on Thu, 28 Aug 2014 09:15:54 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: isinteger
- From: Josef Eschgfaeller <esg@unife.it>
- Date: Thu, 28 Aug 2014 09:15:47 +0200
- Delivery-date: Thu, 28 Aug 2014 09:15:54 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unife.it; s=google; h=mime-version:date:message-id:subject:from:to:content-type; bh=YR99Le/ZpVi0Bmbu8CErJ2jWaNGklVERfBXFcFPGgj0=; b=Xcn7Uij0Jxa3Pb8dzPVb9Tr33+rDgTGRfiYEr+zE3uqxliFgkheUX4+b/4FS4kRscr CmbWiGkiaq3HFxT4L444AEPYlWOk11C2B4644JZ11mrrsdAmQtKiz5zqITtp1mBaCAW6 imHvlRFI8A9dn6tqRKOIdEM33vMwFXrXysTnc=
Is there already a function for this in Pari?
\\ Tests if x is integer.
isinteger (x) = floor(x)==x
\\ For rational x.
isinteger (x) = denominator(x)==1
Thanks
Josef Eschgfaeller
- Follow-Ups:
- Re: isinteger
- From: Jean-Marc Sac-Epee <jean-marc.sac-epee@univ-lorraine.fr>