Add string(float, base = 16)
, string(float, base = 2)
for %a
formatting of floats
#57281
Labels
display and printing
Aesthetics and correctness of printed representations of objects.
feature
Indicates new feature / enhancement requests
It is currently possible to print floats (including
BigFloat
) using@printf "%a" x
, but this seems to be the only way. Would it be feasible to add a form of this that goes throughprint
/string
? For example:This makes it more consistent with other numeric formatting that can be set with
string(x, base = 16)
or similar.The text was updated successfully, but these errors were encountered: