We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Both JS and FlashPlayer suffer from the float number rounding issue.
var test = 0.1 * 10 might result in 0.999999998 instead of 1.
This can lead to nasty bugs (for example if-conditions failing, when they should not)
Both Flash and AwayJS suffer from this problem, but not both behave exactly the same.
Workaround: Round numbers to a int, or a float with fixed precision before using them in a if-condition.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Both JS and FlashPlayer suffer from the float number rounding issue.
var test = 0.1 * 10 might result in 0.999999998 instead of 1.
This can lead to nasty bugs (for example if-conditions failing, when they should not)
Both Flash and AwayJS suffer from this problem, but not both behave exactly the same.
Workaround: Round numbers to a int, or a float with fixed precision before using them in a if-condition.
The text was updated successfully, but these errors were encountered: