The b % (calc-percent-change) [relch] command calculates the percentage change from one number to another. For example, 40 RET 50 b % produces the answer ‘25%’, since 50 is 25% larger than 40. A negative result represents a decrease: 50 RET 40 b % produces ‘-20%’, since 40 is 20% smaller than 50. (The answers are different in magnitude because, in the first case, we’re increasing by 25% of 40, but in the second case, we’re decreasing by 20% of 50.) The effect of 40 RET 50 b % is to compute ‘(50-40)/40’, converting the answer to percentage form as if by c %.
b % ( calc-percent-change ) [ relch ] 命令计算从一个数字到另一个数字的百分比变化。例如, 40 RET 50 b % 产生答案 ‘ 25% ’,因为 50 比 40 大 25%。负结果表示减少: 50 RET 40 b % 产生 ‘ -20% ’,因为 40 比 50 小 20%。(答案的幅度不同,因为在第一种情况下,我们增加了 40 的 25%,但在第二种情况下,我们减少了 50 的 20%。) 40 RET 50 b % 的效果是计算 ‘ (50-40)/40 ’,将答案转换为百分比形式,就像通过 c % 一样。