本文介绍了计算两个数字之间节省的百分比?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有两个数字,第一个是原始价格,第二个是折扣价格.
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 purchase at the second price.
example 25, 10 = 60% 365, 165 = 55%我不知道是计算它的公式.
What I dont know is the formula to calculate this.
推荐答案我知道这已经很老了,但我认为这和任何放置它一样好.我在yahoo上找到了一篇很好的说明文章:
I know this is fairly old but I figured this was as good as any to put this. I found a post from yahoo with a good explanation:
Let's say you have two numbers, 40 and 30. 30/40*100 = 75. So 30 is 75% of 40. 40/30*100 = 133. So 40 is 133% of 30. The percentage increase from 30 to 40 is: (40-30)/30 * 100 = 33% The percentage decrease from 40 to 30 is: (40-30)/40 * 100 = 25%. These calculations hold true whatever your two numbers.原始帖子
更多推荐
计算两个数字之间节省的百分比?
发布评论