Re:Types will be part of Ruby 3 stdlib source
by kgilpin on Friday April 19, 2019 @09:57AM
(#19699633)
You could do this in C++ by storing the unit of measure with the measurement value and then performing unit conversion in overloaded math operators.
[ Parent
| on HN ]
There are no comments on this comment yet.