DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
reduce decimals to 4 digits javascript
var myNumber = 2; myNumber.toFixed(2); //returns "2.00" myNumber.toFixed(1); //returns "2.0"
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#reduce
#decimals
#digits
#javascript
ADD COMMENT
Topic
COMMENT
Name
1+1 =
Submit