Files
pplus-library/pseudo/programs/28-float-trap.pseudo
T
alexm 568474d52f
Test (in pplus-core) / in-core (push) Failing after 28m44s
Initial commit
2026-11-12 22:23:48 -05:00

8 lines
187 B
Plaintext

// What FLOAT does and does not promise.
// EXPECT: FALSE
// EXPECT: TRUE
// EXPECT: 0.30000000000000004
OUTPUT 0.1 + 0.2 == 0.3
OUTPUT ABS((0.1 + 0.2) - 0.3) < 0.000001
OUTPUT 0.1 + 0.2