forked from mpaland/printf
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Support long double values #171
Labels
Comments
eyalroz
pushed a commit
that referenced
this issue
Dec 9, 2023
…uble input arguments - but _not_ for internal processing of long doubles, they are down-converted to the internal representation type. Tweaked some comment text and removv ed some redundant testcases involving float-promotion relative to Yonggag Luo's original commit. Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
eyalroz
added
the
resolved-on-develop
A changeset fixing this issue has been commiutted to the development branch
label
Dec 9, 2023
eyalroz
pushed a commit
that referenced
this issue
Dec 9, 2023
…double input arguments - but _not_ for internal processing of long doubles, they are down-converted to the internal representation type. Tweaked some comment text and removv ed some redundant testcases involving float-promotion relative to Yonggag Luo's original commit. Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
eyalroz
removed
the
resolved-on-develop
A changeset fixing this issue has been commiutted to the development branch
label
Dec 9, 2023
So, the syntax is now supported. The harder part is actually processing long doubles. |
eyalroz
pushed a commit
that referenced
this issue
Jul 19, 2024
…double input arguments - but _not_ for internal processing of long doubles, they are down-converted to the internal representation type. Tweaked some comment text and removv ed some redundant testcases involving float-promotion relative to Yonggag Luo's original commit. Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
eyalroz
pushed a commit
that referenced
this issue
Jul 19, 2024
…double input arguments - but _not_ for internal processing of long doubles, they are down-converted to the internal representation type. Tweaked some comment text and removv ed some redundant testcases involving float-promotion relative to Yonggag Luo's original commit. Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We currently don't support
long double
floating-point values - neither in terms of the printf syntax (%Lf
is rejected), nor in terms of the semantics (we neverva_arg(args, long double)
).As some platforms, and compilers, actually support long doubles - we should do so as well. At first, at least with lower-precision printing by casting to a double, but then preferably printing proper long doubles.
The text was updated successfully, but these errors were encountered: