Menu

#4853 floattofp truncates instead of rounding, and asymmetrically

None
open
nobody
5
4 days ago
4 days ago
No

Spotted by Claude:

(%i1) fpprec: 15$

(%i2) bfloat(2.0/3.0) + bfloat(-2.0/3.0);
(%o2) -2.22044604925031b-16

Should be 0b0.

Discussion


Log in to post a comment.

Monday.com Logo