Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow TolerablyEqual between float and integer #7

Open
KyNorthstar opened this issue Jul 18, 2022 · 1 comment
Open

Allow TolerablyEqual between float and integer #7

KyNorthstar opened this issue Jul 18, 2022 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@KyNorthstar
Copy link
Contributor

This is reasonable functionality for this package:

import BasicMathTools

let someFloat = 2.0000001
let someInteger = 2

assert(someFloat ~== someInteger)
@KyNorthstar KyNorthstar added enhancement New feature or request good first issue Good for newcomers labels Jul 18, 2022
@lodenrogue
Copy link

I'm not too familiar with swift but does it have something built in for accurate math operations? In Java we have BigDecimal for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants