Viewing a single comment thread. View all comments

Schnutzel t1_j23vg43 wrote

Also, by using floating point numbers, you can make the calculations a lot faster by sacrificing precision. Instead of storing 2838393^1024 (which is a huge number) you only store the most significant digits and how many digits it has.

2

mfb- t1_j241eji wrote

It depends on the application. 2838393^1024 has 6600 digits, which is no problem for modern computers to calculate exactly in well under a second.

1

Schnutzel t1_j24265s wrote

True, but when the exponent is 76000 and you start multiplying numbers with tens of thousands of digits, it starts to rack up.

1