integer_equivalent_number_to_integer

mathtools.integer_equivalent_number_to_integer(number)

Changes integer-equivalent number to integer.

Returns integer-equivalent number as integer:

>>> mathtools.integer_equivalent_number_to_integer(17.0)
17

Returns noninteger-equivalent number unchanged:

>>> mathtools.integer_equivalent_number_to_integer(17.5)
17.5

Returns number.