+ 3

PLEASE HELP !! How can I get output in integer (without point) in Java script??

Output in integer form after dividing with any number?? EXAMPLE: 31 / 5 = 6.2 But how can I get only 6?? 31 / 5 = 6 I mean without the numbers after point??

12th Dec 2020, 4:44 PM
TECH WORLD
TECH WORLD - avatar
1 Respuesta
+ 2
Try this Math.floor( 31/5 )
12th Dec 2020, 4:50 PM
Muhammadamin
Muhammadamin - avatar
En tendencia hoy
.
1 Votes
What?
0 Votes
HTML
0 Votes
Web
0 Votes
Quiz duel
0 Votes
FRC Coding?
1 Votes
help
0 Votes
AI
2 Votes
APIs
1 Votes