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

tinystdio: Fix dtox_engine to round the significant figure accurately #16

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

A-Shehab
Copy link
Collaborator

@A-Shehab A-Shehab commented Jul 9, 2024

when a hex number is exactly half way between 2 possible rounding options
with 0 precision (no decimal places) dtox_engine used to not round the
significant figure. After this change rounding with 0 precision works as
expected.

Issue found by running SuperTest by SolidSands.

A-Shehab added 2 commits July 9, 2024 12:12
when a hex number is exactly half way between 2 possible rounding options
with 0 precision (no decimal places) dtox_engine used to not round the
significant figure. After this change rounding with 0 precision works as
expected.

Signed-off-by: Ahmed Shehab <[email protected]>
issue found by running SuperTest by Solid Sands

Signed-off-by: Ahmed Shehab <[email protected]>
@A-Shehab A-Shehab requested a review from keith-packard as a code owner July 9, 2024 09:21
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