- Joined
- Mar 27, 2008
- Messages
- 8,035
How to detect a number that is whole value ?
Such as 1 or 2, not 1.4 or 2.5.
Furthermore, how to make it Integer when the final answer is in Real ?
Example:
CasterLevel / 7 = 2.56
I want the system to set the answer to 2, not 3.
How ?
Basically, if that number is not a whole value, it will return to its base value.
Example:
875.985 (base value is 875) = 875
99.999 = (base value is 99) = 99
Such as 1 or 2, not 1.4 or 2.5.
Furthermore, how to make it Integer when the final answer is in Real ?
Example:
CasterLevel / 7 = 2.56
I want the system to set the answer to 2, not 3.
How ?
Basically, if that number is not a whole value, it will return to its base value.
Example:
875.985 (base value is 875) = 875
99.999 = (base value is 99) = 99