DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
round up to nearest 0.5 javascript
// Simplest way function roundHalf(num) { return Math.round(num*2)/2; }
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#nearest
#javascript
ADD COMMENT
Topic
COMMENT
Name
2+5 =
Submit