Hello , I am looking for an efficient way to cut floating number at Javascript which are long. I need this because my output for taking percentage of two numbers can be sometimes like 99.4444444 while I am only interested in the first 2 digits after "." such as 99.44
My current percentage taking function for 2 numbers:
function takePercentage(x,y){
return (x /y) * 100;
}