Good evening to all,
Part of my homework is checking if the number entered by the user is a whole number. I've managed to do that already, but my question is related to precision.
What I thought on using:
if (round(num) ~= num) ORif (mod(num, 1) == num)end
Both options worked well when I entered a number with 15 or less decimal places. Is there any way for them to work when entering a number with more than 15 decimal places?
Thank you in advance!
Best Answer