Skip to content

Conversation

@azubieta
Copy link
Contributor

@azubieta azubieta commented Sep 5, 2023

closes #259

azubieta and others added 5 commits September 4, 2023 18:46
…alue of multipleOf

When float numbers are involved in a divmod operation the Remainder may be a number close to 0 or to the Divisor and both scenarios mean that the Divisor is a perfect divisor of the dividend.
this will work as long as the numbers are larger than 0.0000000000000001
Signed-off-by: Chris Wacek <cwacek@gmail.com>
@cwacek
Copy link
Owner

cwacek commented Sep 12, 2023

@azubieta see the change I made. If the tests pass I'll merge this version.

@azubieta
Copy link
Contributor Author

@cwacek using Decimal does the job. I just fixed a small typo. Looks good from my side

@cwacek cwacek merged commit abf38dd into cwacek:master Sep 13, 2023
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.

Unprecise comparizon with zero of float values

2 participants