Skip to content

Instantly share code, notes, and snippets.

@galenseilis
Last active October 12, 2022 02:29
Show Gist options
  • Save galenseilis/9b26c1426540485a26d1beecbd8a656f to your computer and use it in GitHub Desktop.
Save galenseilis/9b26c1426540485a26d1beecbd8a656f to your computer and use it in GitHub Desktop.
'''
Adding very small probabilities - How to compute?
'''
import mpmath as mp
mp.mp.dps = 130
print(mp.mpf(1.3573e-123) + mp.mpf(0.99))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment