Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get % of number javascript

Integer = 4857;
Percentage = 30;

console.log(Integer / 100 * Percentage) // 1457.1
console.log(Math.round(Integer / 100 * Percentage)) // 1457
 
PREVIOUS NEXT
Tagged: #number #javascript
ADD COMMENT
Topic
Name
5+2 =