Datatypes

Apr 22, 2014 at 12:21pm
Which datatype is to be use to decleare integer no having length 45 digits?
Apr 22, 2014 at 12:41pm
You could store the number in an array or consider using a library that allows large numbers, the best library for which is probably GMP, although other libraries do exist.

https://gmplib.org/#WHAT
Apr 22, 2014 at 2:12pm
As another suggestion, if you don't mind losing precision, you can also store your data in a double.
Topic archived. No new replies allowed.