如何命名范围为0.0到1.0的值? [英] How to name value with range of 0.0 to 1.0?

查看:61
本文介绍了如何命名范围为0.0到1.0的值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我经常使用0.0到1.0之间的值来保存进度,透明度或其他可能从变为完整的值. 如果愿意的话,为一个百分比.

Quite often I use values between 0.0 and 1.0 to hold progress, or transparancy, or other things that can go from none to full. A percentage if you will.

我不想称其为 percentage ,因为它没有表示为0到100之间的值.

I don't want to call it a percentage because it is not expressed as a value from 0 to 100.

为了给变量一个明确的名称,我仍然想描述这种值.

To give my variables a clear name, I still would like to describe this kind of value.

什么叫合适的名字,几年后我还没有找到.

What would be an appropriate name, I still haven't found one after years.

推荐答案

即称为 归一化值 .

这篇关于如何命名范围为0.0到1.0的值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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