Thanks to visit codestin.com
Credit goes to github.com

Skip to content

How to use with inequalities ? #40

@iongion

Description

@iongion

I use code from example2 to compile expressions such as:

  • x > 2
  • x >= 3
  • x != 3
  • x == 3

All I get is these types of errors:

$ ./example2.exe "(x > 1)"
Evaluating:
        (x > 1)

How can I use tinyexpr to return 0 or 1 for the inequalities ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions