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
Post a Comment