-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove long handling in LuaDouble.toString
The conversion between longs and doubles is a bit confusing. For instance, consider: double x = 900000000000001020d; long y = (double) x; // 900000000000001024 assert x == y; // Is true! This means that even if (long) x == x, it's not necessarily true that Long.toString((long)x) == Double.toString(x)! So let's just delete this special handling, and always use the double formatting code.
- Loading branch information
Showing
2 changed files
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters