javascript - find specified percentage with jquery -


i trying find percentage of integer in jquery: there variable different values gets based on selected attribute (for example variable have value 0.27)

is there made function find 6.61375661375662% of value (0.27)? or need manualy write formula?

var percentage = your_var * .0661375661375662; 

or (for clarity):

var percentage = your_var * 6.61375661375662 / 100; 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -