Skip to content

Conversation

@mjohnson108
Copy link

Regarding Issue #12, the error seems to be due to tiny numerical errors resulting from the arithmetic and causing comparisons to fail at edge cases. The solution I have used here is to use sprintf() to round the result to some fixed precision before the comparison. Only the changes to Box.pm are required to fix the failing test but I have modified a few other places where the issue might manifest.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant