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

Fix floating point representation issue #67

Merged
merged 2 commits into from
Nov 15, 2024

Conversation

JosephTLyons
Copy link
Owner

@JosephTLyons JosephTLyons commented Nov 15, 2024

// Would produce a floating point error in v1.3.1: 2.7119999999999997
FloatTestData(
  input: "2.712",
  expected_program_output: Ok(2.712),
  expected_python_output: Ok("2.712"),
)
// Would produce a floating point error in v1.3.1: 7.5776864147000005
FloatTestData(
  input: "7.5776864147",
  expected_program_output: Ok(7.5776864147),
  expected_python_output: Ok("7.5776864147"),
),

@JosephTLyons JosephTLyons merged commit b3130d5 into main Nov 15, 2024
1 check passed
@JosephTLyons JosephTLyons deleted the fix-floating-point-representation-issue branch November 15, 2024 07:31
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

Successfully merging this pull request may close these issues.

1 participant