2 ms·
Sure, but then you still have to name the type.
by db48x 6y ago
Sure, but then you still have to name the type.
- sanjay_316 6y agoUnitInterval 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.