Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jwilk
· 9y ago · 0 comments
Similarly, for C it could be:
printf("%.*f\n", DBL_DECIMAL_DIG, .1+.2)
In both cases, support for a relatively new language standard (C++11, C11) would be required.
Comments
[–]
TwoBit
9y ago
2011 was six years ago.
[–]
saghm
9y ago
In terms of C and C++, that's fairly new. Lots of older code using pre-C11/C++11 standards is out there.
[–]
celdon25
9y ago
Hence the phrase "relatively new".