4 ms·
UnitInterval Represent it internally as either fixed or floating point and divide to convert in and out if needed. With a nice type system you could even gene
by sanjay_316 6y ago
UnitInterval
Represent it internally as either fixed or floating point and divide to convert in and out if needed.
With a nice type system you could even genericize the type over integer constants
- db48x 6y agoOthers have already said it, but that name is for a type whose values are intervals, not a type whose values are numbers within an interval.