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

Preventative measure to provide unrounded numbers from displaying. Fi… #239

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

jbum
Copy link
Collaborator

@jbum jbum commented Dec 22, 2023

Fixes a bug observed on hub.innovation.ca.gov which uses the same code.

CleanShot 2023-12-22 at 14 28 07

The numbers in the json was definitely .58, and multiplying it by 100 was causing the sporadic rounding error seen in many modern chipsets. Added a roundNumber filter to prevent this.

…xes a bug observed on hub.innovation.ca.gov which uses the same code.
Copy link

Preview site available at jbum-fix-rounding-error.pr.digital.ca.gov.

@jbum jbum merged commit 30d321e into main Dec 22, 2023
1 check passed
Copy link
Contributor

@zakiya zakiya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏾

@jbum jbum deleted the jbum-fix-rounding-error branch March 12, 2024 21:25
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.

2 participants