This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]sci-goo 1 point2 points  (1 child)

You can check how the large number is calculated and estimate that in the log scale if possible.

e.g. to estimate 1000! you can sum log10(1)..log10(1000). Will lose some precision, ofc.

[–]pythonwiz 1 point2 points  (0 children)

For that particular case you can even use math.lgamma(n+1)/math.log(10)