# colour.utilities.is_integer¶

colour.utilities.is_integer(a)[source]

Returns if given $$a$$ variable is an integer under given threshold.

Parameters: 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.

Examples

>>> is_integer(1)
True
>>> is_integer(1.01)
False