Comments (3)
What decimal library are you using? I suspect this might be due to using decimal.js (https://github.com/MikeMcl/decimal.js) rather than break-infinity.js (https://github.com/patashu/break_infinity.js). This library is only compatible with https://github.com/patashu/break_infinity.js. From what I see of your game, you can probably switch to break_infinity.js, but I've offered some information below if not.
Generally, for most incremental games, I would recommend break-infinity.js over decimal.js due to decimal.js storing a lot of precision, more than is needed for incremental games, making calculations very slow. However, if for some reason your game has a mechanic requiring use of decimal.js, you'll need to convert numbers to break-infinity.js decimals before formatting them. I can try to help on this if that's the issue.
Alternatively, if you're using another big number library like ExpantaNum, this notation library unfortunately still won't work with that, and it may be unable to handle numbers that big even with workarounds.
from notations.
(It could also be some other issue, but it would help to have an attached copy of script.js rather than just an image because I don't want to type it out to try reproducing, and also copies of or sources for any other files you use. script.js looks to me like it should run and certainly shouldn't lead to this error on its own, for what that's worth.)
from notations.
What decimal library are you using? I suspect this might be due to using decimal.js (https://github.com/MikeMcl/decimal.js) rather than break-infinity.js (https://github.com/patashu/break_infinity.js). This library is only compatible with https://github.com/patashu/break_infinity.js. From what I see of your game, you can probably switch to break_infinity.js, but I've offered some information below if not.
Generally, for most incremental games, I would recommend break-infinity.js over decimal.js due to decimal.js storing a lot of precision, more than is needed for incremental games, making calculations very slow. However, if for some reason your game has a mechanic requiring use of decimal.js, you'll need to convert numbers to break-infinity.js decimals before formatting them. I can try to help on this if that's the issue.
Alternatively, if you're using another big number library like ExpantaNum, this notation library unfortunately still won't work with that, and it may be unable to handle numbers that big even with workarounds.
ah flip im using break_eternity.js
from notations.
Related Issues (20)
- prime notation is wrong HOT 14
- Add option to remove space from Standard and Mixed Scientific
- Feature request: SI prefixes notation HOT 1
- Nonzero Decimals under Number.MIN_VALUE are treated as zero HOT 3
- fixMantissaOverflow should not round up HOT 1
- Feature Request: Declaration File HOT 1
- Add thorough testing for all non-community notations
- Once we get community notations, create a different section for those compared to those in game. HOT 3
- Uncaught TypeError: Cannot read properties of undefined (reading '__extends') @2.0.1 HOT 2
- Better handling of other bases HOT 4
- Scientific notation formatting issue
- TypeError: t.indexOf is not a function when using node.js HOT 1
- Dependabot script broke HOT 1
- Wrong notation output HOT 1
- Number can get -ee308 but can't get ee308 HOT 1
- Hex notation rounds numbers when it shouldn't
- When adding more e's it cycles
- Unit testing? HOT 1
- github.io page is broken
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notations.