'Naming a [0, 1] range datatype?
In our project we have a datatype that is constrained to all float values between 0 and 1 (including 0 and 1). How could such a datatype be named?
This datatype is used for DAC and ADC abstraction. I.e. we don't care about how many bits the DAC or ADC supports, we just take this [0, 1]-datatype and multiply with the respective max value.
Solution 1:[1]
Well I don't know your context so there's probably a better option, but from what you say it looks like a "UnitInterval".
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Alex C. |
