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

Float16 values are unconditionally output in scientific notation #54

Open
KStocky opened this issue Feb 10, 2024 · 0 comments
Open

Float16 values are unconditionally output in scientific notation #54

KStocky opened this issue Feb 10, 2024 · 0 comments

Comments

@KStocky
Copy link
Owner

KStocky commented Feb 10, 2024

Describe the bug
As the title says. If a float16 value is appears in an assert message it is formatted in scientific notation no matter what the user wants. Although the value printed is correct, it is still not always what the user wants.

To Reproduce
Steps to reproduce the behaviour including the following:

  1. Write a test which asserts that two differing float16_t values are equal
  2. Run the test
  3. Observe that the float16 values are output in scientific notation

Expected behavior
I would prefer no scientific notation unless I wanted it formatted as such

Additional context
This comes from the operator << in the float16 library. The fix could be just to fix that output.

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