I like to use a separate phrase "whole number", leaving "integer" to also
imply a type.
Thus wholenumberp(3.0) and wholenumberp(3) both return true, whereas
integerp(3.0) returns false.
-- best regards, david stoutemyer
On Mon, Dec 17, 2012 at 1:36 PM, Barton Willis <willisb at unk.edu> wrote:
> Maxima says that real floats are noninteger. There are arguments for and
> against this, I think. Of course for binary64 numbers 3.0 = 3
> is 100% true. I have been goofing around with the nonintegerp
> function--ahh it would be a great deal easier to keep the policy that
> floats are noninteger, by the way :)
>
> (%i3) map(lambda([s],featurep(s,'noninteger)),[x,%pi, 2/3, sqrt(42),
> 3.0, 6.0b0, [], [5]]);
> (%o3) [false,true,true,true,true,true,false,false]
>
> --Barton (who blames all recent mistakes on a bad cold).
>
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>