Jvns.ca

Why does 0.1 + 0.2 = 0.30000000000000004?

Why does 0.1 + 0.2 = 0.30000000000000004?

The reason that 0.1 + 0.2 prints out 0.3 in PHP is that PHP's algorithm for displaying floating point numbers is less precise than Python's.

Tên miền: jvns.ca Đọc thêm