Using the built-in language features for me.
Java has BigInteger and BigDecimal , and the Python automaton switches to an object similar to Java if the number falls outside the integer or whatnot range.
As for other languages, I have no idea.
I don't like reinventing the wheel.
jjnguy
source share