I was doing a small numbercal analysis problem that required the use of huge numbers. At first i was surprised that my code didn't work, even after double and triple checking, and after tracing the programme, i found out the mistake that i did. Firstly i used integers, and when the numbers started to increase they went bigger than the integer number range on C++ and started to give a negative number. Anyways, i used(adsbygoogle = window.adsbygoogle || []).push({}); longand it worked ok for most of the numbers that needed calculations, but still some iteration couldn't be done since they also went out of range.

How could i solve this problem?

**Physics Forums | Science Articles, Homework Help, Discussion**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Small numbercial analysis question

**Physics Forums | Science Articles, Homework Help, Discussion**