数学范围百分比 [英] Maths Range To Percentage

查看:118
本文介绍了数学范围百分比的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一些数学方面的帮助.

i need a bit of help with some maths.

我的范围是0-127,我想将其转换为百分比.

I have a range 0 - 127 and i want to convert it into percentage.

所以0%= 0和100%= 127以及中间的每个数字.

So 0% = 0 and 100% = 127 and every number inbetween.

我该怎么做?

由于乔恩发表了什么,我想到了:

Thanks to what jon posted, i came up with:

$%* 127/100

$percent * 127 / 100

推荐答案

如果您想从一个值升至一个百分比,例如从63.5到50%,则将您的值除以127&乘以100.

If you want to go from a value to a percentage, eg from 63.5 to 50%, divide your value by 127 & multiply by 100.

如果您想采用其他方法,例如从50%降至63.5,则相反:将百分比除以100&乘以127.

If you want to go the other way, eg from 50% to 63.5, it's the reverse: divide your percentage by 100 & multiply by 127.

这篇关于数学范围百分比的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆