I've locally implemented some arbitrary-length number types,
BigDecimal, which conform to NSNumber, and are based on Java's BigInteger and BigDecimal.
However I seem to be running into problems using NumberFormatter on these very large numbers.
It always rounds big values to infinity.
For example when I create a very large BigDecimal, for example,
... then if I make a NumberFormatter and feed this number in, it always formats it as positive infinity:
Even if I set
formatter.maximumIntegerDigits = 99999999, it still treats this number as
Is NumberFormatter limited in some way internally to a particular byte length of number?
I.e. is there some workaround for this problem or am I just going to have to roll my own NumberFormatter?