DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript convert to two decimal places
var example = 3.35464464374256 ; example = parseFloat(example.toFixed(2)) ; // example == 3.35
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#javascript
#convert
#decimal
#places
ADD COMMENT
Topic
COMMENT
Name
8+1 =
Submit