You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In lua.org, it said that when using double to represent an integer, it won't get rounding error unless the number is greater than 10^14. As the counter value is integer, is the maximum value for the counter is 10^14 - 1?If the counter is over the 10^14, should I reset it to zero?
My second question is about double overflow. However, I just learned that double overflow is not like integer overflow (INT_MAX -> INT_MIN), more like a rounding error. So the second question is just like the first question.
Is possible that the integer counter would be overflowed to be negative?
The text was updated successfully, but these errors were encountered: