DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR HTML
how to limit decimal places in javascript
let pi = 3.141; let rounded = pi.toFixed(1); console.log(rounded); //output: 3.1
PREVIOUS
NEXT
Tagged:
#limit
#decimal
#places
#javascript
ADD COMMENT
Topic
COMMENT
Name
6+9 =
Submit