Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript how to take off a decimal

function png(){
    return Math.trunc(Math.random() * 10);
}
//Removes the decimal without rounding
 
PREVIOUS NEXT
Tagged: #javascript #decimal
ADD COMMENT
Topic
Name
6+7 =