I have just observed that the parseInt function doesn\'t take care about the decimals in case of integers (numbers containing the e character).
parseInt
e
Math.round("12.2e-2") may round up or down based on the value. Hence may cause issues.
Math.round("12.2e-2")
new Number("3.2343e-10").toFixed(0) may solve the issue.
new Number("3.2343e-10").toFixed(0)