Calculate percentage saved between two numbers?

前端 未结 9 1564
自闭症患者
自闭症患者 2020-12-22 19:25

I have two numbers, the first, is the original price, the second, is the discounted price.

I need to work out what percentage a user saves if they

9条回答
  •  情歌与酒
    2020-12-22 19:55

    The formula would be (original - discounted)/original. i.e. (365-165)/365 = 0.5479...

提交回复
热议问题