Naruyoko / OmegaNum.js

A huge number library holding up to 10{1000}9e15. A basement for planned {10,x,1,2}.
https://naruyoko.github.io/OmegaNum.js/index.html
MIT License
33 stars 15 forks source link

Wrong number from string #25

Closed Reinhardt-C closed 4 years ago

Reinhardt-C commented 5 years ago

OmegaNum('10^^10') == OmegaNum('10') for some reason.

Reinhardt-C commented 5 years ago

In a kind of unrelated issue: OmegaNum('10^^9') is what '10^^10' should be. Ugh, this breaks my brain.

Naruyoko commented 5 years ago

α 1.0.2

James103 commented 5 years ago

Just checked on https://naruyoko.github.io/OmegaNum.js/index.html:

OmegaNum('10^^10') == OmegaNum('10') 
false
OmegaNum('10^^10').toString()
(10^)^8 10000000000
OmegaNum('10^^9').toString()
eeeeeee10000000000
OmegaNum('10')
10