colour.utilities.
is_integer
Returns if given \(a\) variable is an integer under given threshold.
a (object) – Variable to check.
Is \(a\) variable an integer.
bool
Notes
The determination threshold is defined by the colour.algebra.common.INTEGER_THRESHOLD attribute.
colour.algebra.common.INTEGER_THRESHOLD
Examples
>>> is_integer(1) True >>> is_integer(1.01) False