I am learning D, that's why i have to ask.
Why does writefln("%.17f", .1+.2); not evaluate into: 0.30000000000000004, like C++ but rather to: 0.29999999999999999 Many other languages evaluate to 0.30000000000000004 as well.
Jan Hönig via Digitalmars-d-learn Tue, 03 Dec 2019 01:26:07 -0800
I am learning D, that's why i have to ask.
Why does writefln("%.17f", .1+.2); not evaluate into: 0.30000000000000004, like C++ but rather to: 0.29999999999999999 Many other languages evaluate to 0.30000000000000004 as well.