halfintegerQ

◼ halfintegerQ[z] returns True if z is an integer or a half-integer.

◼ See also: IntegerQ.

Further examples

Load Package sneg

<< sneg`sneg`;

Some tests

halfintegerQ[0]
halfintegerQ[1/2]
halfintegerQ[1]
halfintegerQ[3/2]
halfintegerQ[2]

halfintegerQ[1/3]
halfintegerQ[1. ]
halfintegerQ[Pi]