Closed pixelzoom closed 10 years ago
I think dot.Util.isInteger is fine. The problem in phetsims/phetcommon#19 is about floating point error that happens before dot.Util.isInteger is called. Reassigning to @pixelzoom for discussion. Close if there are no further issues here.
@samreid brought up concerns about isInteger in phetsims/graphing-lines#11 and https://github.com/phetsims/phetcommon/issues/19. It's a general issue with dot, so creating this issue.
The original implementation was:
After discussion, it was changed to this implementation, as identified in Stackoverflow: