JS - rounding 08.25.2018

function roundToTwo(num) {
    return +(Math.round(num + "e+2") + "e-2");
}