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

a bug #132

Closed
peterhoucll opened this issue Nov 18, 2016 · 1 comment
Closed

a bug #132

peterhoucll opened this issue Nov 18, 2016 · 1 comment

Comments

@peterhoucll
Copy link

    do {
        let expression = try Expression(string: "10.2 - 10.1")
        let result = try Evaluator.default.evaluate(expression)
        print("result = \(result)")
    } catch {}
   //result = 0.0999999999999996

    do {
        let result = try "10.2 - 10.1".evaluate()
        print("result = \(result)")
    } catch { }
   //result = 0.0999999999999996
@davedelong
Copy link
Owner

Yep. This is the same as issue #99 and there's not a lot I can do about it. 😞

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

No branches or pull requests

2 participants