Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BigInt lose precision when rendered to HTML #335

Closed
a1exsh opened this issue Dec 12, 2022 · 0 comments
Closed

BigInt lose precision when rendered to HTML #335

a1exsh opened this issue Dec 12, 2022 · 0 comments

Comments

@a1exsh
Copy link

a1exsh commented Dec 12, 2022

The following are instances of clojure.lang.BigInts:

1142497398145249635243N
5848410500431704397897896365507247667433263714766540202297213311376934756952791431579008518268338470469852007919794999747174979327128143358874500512583563160027334633398922392746269567250745756469694836012907837159194901864422867574317633928261934846315161075995316965671945769324175538686767057777779962609856022465686276764911895527860549945837427993819492110164243045920949063561384568328688490139528523388045392956871202008404100009248711746908661015582300137671598516N

When used in a notebook, the following is rendered to HTML:

1142497398145249635243N

1.1424973981452496e+21

5848410500431704397897896365507247667433263714766540202297213311376934756952791431579008518268338470469852007919794999747174979327128143358874500512583563160027334633398922392746269567250745756469694836012907837159194901864422867574317633928261934846315161075995316965671945769324175538686767057777779962609856022465686276764911895527860549945837427993819492110164243045920949063561384568328688490139528523388045392956871202008404100009248711746908661015582300137671598516N

Infinity

Expected behavior: BigInts should be displayed without loss of precision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant