Question
29.8 * 22.15 == 660.07 // false
29.8 * 22.15 == 660.07 // false
Extendscript:
29.8 * 22.15 // 660.07
29.8 * 22.15 == 660.07 // false
Chrome Browser Console (F12):
29.8 * 22.15 // 660.0699999999999
Extendscript:
29.8 * 22.15 == 660.0699999999999 // true
minimal equality:
29.8 * 22.15 == 660.06999999999988 // true
maximal equality:
29.8 * 22.15 == 660.069999999999993 // true
so the range is: 993 - 88 = 905
Workarounds:
(29.8 * 22.15).toString() == 660.07; // true
(29.8 * 22.15).toFixed(2) == 660.07; // true
(29.8 * 22.15).toPrecision(5) == 660.07; // true