https://en.wikipedia.org/wiki/Unit_interval#:~:text=In%20mat...
If you google accuracy, you'll get the noun. If you use a made up term, it'll probably return useless results.
https://en.wikipedia.org/wiki/Unit_interval#:~:text=In%20mat...
If you google accuracy, you'll get the noun. If you use a made up term, it'll probably return useless results.
Unit Interval Value is nice but still a bit cumbersome. I mean if we all agreed right now it were called a "poog" then we could just say poog.
typedef float UnitInterval;
void do_something_accurately(UnitInterval accuracy);I don't know much about C (? I assume that's what this is), but in other languages you can even build a wrapper type and enforce invariants in construction if really necessary.
Of course, all that ceremony only makes sense if this is really a type you use multiple times. Otherwise I wouldn't bother.
Just as we say an integer is a member of the set called the integers.
We say our "X" (the word we are looking for) is a member of the set called the closed unit interval.
(NB: "In real life" I would never "correct" someone for calling it "UnitInterval", it's good enough -- but given this is a pure discussion of semantics...)
typedef float UnitIntervalValue;
void do_something_accurately(UnitIntervalValue accuracy);
FTFYUnitIntervalValue would be the type name for the thing we are interested in.
Values of that type should of course have descriptive names.