Skip to content

Floating-Point Precision Error in Expression Evaluation #109

@Anyman552

Description

@Anyman552

Describe the Bug

When using the feelin to evaluate the expression "1.1 + 1.3", the result is unexpectedly "2.4000000000000004" instead of "2.4". This appears to be a floating-point precision issue.

Steps to Reproduce

  1. visit playground
  2. Observe the result

Expected Behavior

The expected result of the expression "1.1 + 1.3" should be "2.4", without any additional decimal places caused by floating-point precision errors.

Environment

  • Library version: 4.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogbugSomething isn't workingtckwontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions