Wrong real number to string conversion
praxidike97 opened this issue Β· comments
praxidike97 commented
When I execute
π π‘ π1.0β5ββ
-1.00000 is correctly printed. But when I change it to
π π‘ π0.9β5ββ
it prints 0.90000. There seems to be something wrong with the π‘ βmethod, it always loses the '-' when the real number is smaller than 1.0
thbwd commented
Thanks for reporting that. This was caused by a comparison of -0.0 against 0, where -0.0 apparently is not considered to be smaller in C++.