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
32 stars 15 forks source link

Wrong results from string. #26

Closed loader3229 closed 4 years ago

loader3229 commented 4 years ago

new OmegaNum("10^^100") == 1, not [100,0,1] new OmegaNum("10^^101") == 10, not [101,0,1] new OmegaNum("10^^1000") == 1, not [1000,0,1] new OmegaNum("10^^1001") == 10, not [1001,0,1] new OmegaNum("10^^10000") == 1, not [10000,0,1]

See #25 . What?

Reinhardt-C commented 4 years ago

Yeah, this stuffed me up so bad when I was creating notations for my game. I couldn't figure out why my code was giving the wrong answer.

Naruyoko commented 4 years ago

α 1.0.2.2

loader3229 commented 4 years ago

image

Naruyoko commented 4 years ago

Fixed. 10^^101

Reinhardt-C commented 4 years ago

YAY