Create LongestLong
Implement a numeric class which will support infinitely large or small number.
Steps:
- Create a new class called LongestLong (or use a better name if you come up with one) in CommonMath.
- Think of a way to store the large number.
- Try using a list of longs
- Derive from interfaces which are used by int, double, long... (IComparable, IFormattable, IConvertible...)
- Implement the interfaces and their logic
- Define mathematical operators
-
Addition -
Subtraction -
Multiplication wiki -
Division
-
Edited by Deno