I have tried using the modulo operator for small floats and it works perfectly fine.
For example: 5 % 2
returns 1
.
But for other large floats that are read as exponential in python it just returns 0
every time even if the number is odd.
Like this:
295147905179352825855 % 2
returns 0
even though that number is clearly odd.
Is there anything I can do to check large floats without python reading it as exponential?