Comments (2)
Any multiplication of 5 decimals or more - Creates an endless loop.
Let's take the example of Power( 2, 6 )
:
- The power operation assign the number
2
into the results variable. - The power factor decreased by 1.
- the remaining
2 ** 5
should be optimized, with5
being divided by 5 &2
multiplied 5 times. - The
Multiply( 2, 2, 2, 2, 2 )
is the reason for the endless loop.
So... it should happen also with 2 ** 11
and more examples that depends on Power()
, or Multiply()
with 5 decimals or more.
from math.
It's a severe bug, and will be fixed asap.
from math.
Related Issues (20)
- Power operation is very slow HOT 1
- Division needs a performance boost
- Support the modulus operation
- Add some more operations
- Subtract handle carry inside negative decimals, as (+1) instead of (-1) HOT 2
- Merge with @yaronkoresh/bases library
- Support the fibonacci sequence
- Divide can't have a precision of "0" (no digits below the decimal point)
- Add support for CommonJS & the browser
- Support subtraction of unsigned binary strings
- Support signed binaries addition/subtraction, using two's complement representation
- Support negative binaries when using unsigned binary operations
- Binary operations does not check if the binary strings are actually binaries
- FromDecimal charset index is wrong
- Power does not work when using array(s) as parameters
- Console.log on basic operations make the algorithm slow & show alot of log message
- RoundUp operation does a round up, even when there is no need to round at all
- Bases from null to any base length that is not a power of 2 - return wrong results
- Encoding & decoding are no more UTF-8 , but UTF-32 HOT 1
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 math.