Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript sig figs

let num = 1.2345
let sig_figs = 3
Number( my_number.toPrecision( sig_figs ) ) // "1.23"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #sig #figs
ADD COMMENT
Topic
Name
3+5 =