0

I am writing an app that , among other things will be able to multiply or divide very large numbers by number 19 - Those large numbers could possibly span hundreds of digits . Do you know of a library I could use for that? Thanks in advance. I have tried using NSDecimalNumber but its not able to produce results past 38 digits.

real 19
  • 748
  • 8
  • 32

1 Answers1

2

If licensing is not an issue GMP is good.

LogicG8
  • 1,767
  • 16
  • 26
  • How do I multiply lets say 102343345345345453453544350 with 0.025 using GMP. I am able to divide and multiply whole numbers but having trouble with multiplying fractional points. – real 19 Jul 27 '13 at 10:02
  • You can A) Use MPFR for floating point http://www.mpfr.org/. MPFR uses GMP so it will not have been a waste to have it set up. B) Use fractions – LogicG8 Jul 27 '13 at 11:58