Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

format percentage javacsript

var x=150;
console.log(parseFloat(x).toFixed(2)+"%");
x=0;
console.log(parseFloat(x).toFixed(2)+"%");
x=10
console.log(parseFloat(x).toFixed(2)+"%");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #format #percentage #javacsript
ADD COMMENT
Topic
Name
3+9 =