DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
rounding number to x decimals javascript
let num = 12.5452411; num = num.toFixed(3); // 12.545
Source by javascriptf1.com #
PREVIOUS
NEXT
Tagged:
#rounding
#number
#decimals
#javascript
ADD COMMENT
Topic
COMMENT
Name
5+3 =
Submit