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

Inaccurate results when comparing floats values with the floats saved in contenttype #3461

Open
abdellahrk opened this issue Jun 19, 2023 · 0 comments

Comments

@abdellahrk
Copy link
Contributor

abdellahrk commented Jun 19, 2023

when doing a search with the where clause, fetching contents whose values of amount is <= 5 or <=5.0 returns contents with amount values of 5.3 or 5.1.

amount: 
  type: number 
  mode: float

Details

Question Answer
Relevant Bolt Version 5.1
Install type Composer
BC Break no
PHP version 8.1
Web server Nginx
For UX/UI issues Chrome/Firefox/Edge

Reproduction

Bug summary

When doing a search with the where clause, fetching contents whose values of amount is <= 5 or <=5.0 returns contents with amount values of 5.3 or 5.1.

Steps to reproduce

Doing a search with where clause.

Expected result

The expected result should be content with amount less than or equals to 5. Rather, contents greater that 5 are returned as well like `5.-`.

Actual result

The actual results are contents including `5.-` which is greater than 5
@abdellahrk abdellahrk changed the title Inaccurate result when comparing floats values with the floats saved in contenttype Inaccurate results when comparing floats values with the floats saved in contenttype Jun 19, 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

No branches or pull requests

1 participant