number types should only provide operations with it self. Internal protected methods maybe e implemented to ease enhancements where needed. Conversion to Float is last resort.
Conversions should occur upwards
natural -> integer -> rational -> float
decimals depend on context. rational + decimal is possible since decimals are a special kind of rationals ( n / 10^s)
number types should only provide operations with it self. Internal protected methods maybe e implemented to ease enhancements where needed. Conversion to Float is last resort. Conversions should occur upwards
natural -> integer -> rational -> float
decimals depend on context. rational + decimal is possible since decimals are a special kind of rationals ( n / 10^s)