Josef Eschgfaeller on Thu, 28 Aug 2014 09:15:54 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

isinteger


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