javascript sig figs

let num = 1.2345
let sig_figs = 3
Number( my_number.toPrecision( sig_figs ) ) // "1.23"
Poor Pollan