DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
round down the number javascript
+
3.5
=>
+
3.0
-
3.5
=>
-
4.0
+
3.5
=>
+
3.0
using
Math
.
floor
(
)
-
3.5
=>
-
3.0
using
Math
.
ceil
(
)
PREVIOUS
NEXT
Tagged:
#number
#javascript
ADD COMMENT
Topic
COMMENT
Name
4+1 =
Submit