Wher tah you find decimals

It's very simple. One thing you should keep in mind is how many precision places you want to have for your decimal number. Divide the number by as much precision as you want to have. for example for 2 decimal points if you are provided with 5 that will be 5/100 =0.05. Similarly for others if you want to have this for 6 precision it will be 5/1000000=0.000005

For percent you just have to use a simple formula. For example you have a out of b. Its percent will be

(a/b)*100

For percent you just have to use a simple formula. For example you have a out of b. Its percent will be

(a/b)*100