+ 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 Réponse
+ 2
Try this Math.floor( 31/5 )
12th Dec 2020, 4:50 PM
Muhammadamin
Muhammadamin - avatar