function roundNumber(num, scale) {
  if (!("" + num).includes("e")) {
    return +(Math.round(num + "e+" + scale) + "e-" + scale);
  } else {
    const arr = ("" + num).split("e");
    let sig = ""
    if (+arr[1] + scale > 0) {
      sig = "+";
    }
    return +(Math.round(+arr[0] + "e" + sig + (+arr[1] + scale)) + "e-" + scale);
  }
}
/**
 * Round a given value at desire decimal
 * 
 * @param {number} num 
 * @param {number} scale 
 * @return {number}
 */
Round a given value at desire decimal


Round a given value at desire decimal
function roundNumber(num, scale) {
  if (!("" + num).includes("e")) {
    return +(Math.round(num + "e+" + scale) + "e-" + scale);
  } else {
    const arr = ("" + num).split("e");
    let sig = ""
    if (+arr[1] + scale > 0) {
      sig = "+";
    }
    return +(Math.round(+arr[0] + "e" + sig + (+arr[1] + scale)) + "e-" + scale);
  }
}
function roundNumber ( num , scale ) { if ( ! ( "" + num ) . includes ( "e" ) ) { return + ( Math . round ( num + "e+" + scale ) + "e-" + scale ) ; } else { const arr = ( "" + num ) . split ( "e" ) ; let sig = "" if ( + arr [ 1 ] + scale > 0 ) { sig = "+" ; } return + ( Math . round ( + arr [ 0 ] + "e" + sig + ( + arr [ 1 ] + scale ) ) + "e-" + scale ) ; } }
Round a given value at desire decimal
Round a given value at desire decimal