DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
to 2 decimal places javascript
var discount = Math.round((100 - (price / listprice) * 100) * 100) / 100;
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#decimal
#places
#javascript
ADD COMMENT
Topic
COMMENT
Name
2+2 =
Submit