Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What programming language will enable me to enter a very long number without converting it to floating point?

What would be the best way to do the following.

Enter a very long number, lets say 500,000 digits long without it going into scientific notation; and then am able to do math with it, like +2 etc.?

Thank you in advance.

EDIT: It is a 500,000 digit, positive integer.

like image 964
ron8 Avatar asked Nov 26 '22 20:11

ron8


1 Answers

Python and Java have native support, libraries exist for C++, C, .NET, ...

like image 171
arul Avatar answered Jan 06 '23 09:01

arul