I've been having issues naming variables that should be constrained to [0-1] range. I used to use *percent but that becomes confusing since that could mean [0-100]% and not its 0-1 value. Does anyone have any suggestions?
A friend recommended "ratio" but I'm not enjoying writing it, it has a different meaning in my head.
@worntunic Fraction? Technically any number between 0 and 1 can be represented by a proper fraction.
@worntunic ooh this has always bugged me too. I've seen "alpha" before as a suffix, it kind of works?
@dznz That's good but it has a constrained context. For example, you can't use it to "get a point along the path x% from the start".
Perhaps the lesson is I shouldn't force one name on all the values that have the same constriction but name them by their behaviour
Mastodon server focused on game development and related topics.