Here's how you can convert percentage to decimal:
Step 1. Pass the percentage string in parseFloat() method
Step 2. Divide the result from step 1 by 100
The parseFloat() converts the percentage to float number.
Here is an example below:
var percent = "25%";
var result = parseFloat(percent) / 100;
console.log(result); //0.25