For example, I know 0.1+0.2 == 0.3 is false because float number is not accurate sometimes. After adding toFixed(2) following Number.parseFloat, it becomes true:
console.log(0.1+0.2 == 0.3);
console.log(Number.parseFloat((0.1+0.2).toFixed(2))==0.3);
However, I want to know the general case of it: for float numbers x,y,z with 0-2 decimals (x,y may have different number of decimals, eg: 1.35+7.9),if x+y exactly equals to z in decimal form, and Number.MIN_VALUE <= x,y,z <= Number.MAX_VALUE, is
Number.parseFloat((x+y).toFixed(2))==z
always true? If so, besides x+y, are x-y,x*y,x/y (without x/0) also implies in this case? If not, when would it be false?