Skip to content

Conversation

tmilnthorp
Copy link
Collaborator

Fix for #572. Must use Math.Truncate not Math.Floor for negative numbers.

Conversions using Math.Floor return incorrect values for negative numbers. Using Math.Truncate instead. Adding tests.
@angularsen angularsen changed the title Conversions using Math.Floor return incorrect values for negative num… Fix negative FeetInches and StonePounds with negative values Dec 14, 2018
@angularsen angularsen merged commit 288133a into angularsen:master Dec 14, 2018
@angularsen
Copy link
Owner

Nice!

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.

2 participants