DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
js round to x decimal places
let roundOff = (num, places) => { const x = Math.pow(10,places); return Math.round(num * x) / x; }
Source by learnersbucket.com #
PREVIOUS
NEXT
Tagged:
#js
#decimal
#places
ADD COMMENT
Topic
COMMENT
Name
6+6 =
Submit