Skip to content

ExactNumberQ

Tests whether a number is exact (integer, rational, etc. but not a machine float).

$ wo 'ExactNumberQ[3]'
True
$ wo 'ExactNumberQ[1/2]'
True
$ wo 'ExactNumberQ[3.5]'
False