More info:
 Code:
$num = 729.95 - 99.99 - 629.96
works and properly returns 0.

From a Libre-Office bug sheet:
 Quote:
This is not an LO bug. I get the exact same result with a Python script,
a Ruby script, and Calligra Sheets.

It is a problem with internal representation of decimal numbers in any
computer system. This is a well known problem in scientific
computing/numerical analysis.

Also, reordering the addition produced different precisions. I think the
correct numerical analysis term for this is precision referring to how
closely the actual value is to the true value.
This is why I changed the order, and - to my surprise - got the expected value.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D