3
我迷惑了我的自我,甚至無法弄清楚這個基本的數學問題,請幫助我,如果你有空。Javascript差異百分比數學
我該如何在Javascript中做到這一點?
來源:http://www.calculatorsoup.com/calculators/algebra/percent-difference-calculator.php
(| V1 - V2 |/((V1 + V2)/2)) * 100
= (| 7606 - 6000 |/((7606 + 6000)/2)) * 100
= (| 1606 |/(13606/2)) * 100
= (1606/6803) * 100
= 0.236072 * 100