-
`(-1) ^ (1 / 2)` returns `6.123233995736766e-17 + i` however isn't that supposed to return just
`i`?
Also for example:
`(-25) ^ (1 / 2)` returns `3.061616997868383e-16 + 5i` but if I'm right…
-
I suppose this may be outside the scope of this project, but I think it would be really helpful to support stringifying and parsing of Infinity and NaN tokens. In my case I would like to support both…
-
The final definition of `randomInt` uses a *scale-then-floor* algorithm to fit the distribution to the range:
```javascript
var _randomInt = function(min, max) {
return Math.floor(mi…
-
**Explanation**
A user which is attempting to deploy a 1:1 token DAO - would most likely want to assign/allocate a certain amount of tokens to holders. If user x is assigned 10 tokens, their token ba…
-
Should go without saying -- no casting BigNumbers to Numbers when the data is "untrusted" (i.e. any random token).
Just return the BigNumber back into the data layer and let the view layer handle how…
-
by example if I do:
```
nthroot(-5*0, 2) = error
```
it shoud be:
```
nthroot(-5*0, 2) = 0
```
also, when we have any other negative number it equals error when it could be a complex number
…
-
As already discussed here in the Web3.js issue: https://github.com/ethereum/web3.js/issues/2077 does the new AbiCoder have problems with converting numbers to BigNumbers and encoding them correctly.
…
-
The number of tokens in the app and in the wallet has to look the same. The wallet shows 'whole tokens' 10**18, while the wallet asks to approve 18 decimal values
-
Just make a test.
Create a fraction number with a size over 10^21.
Than format it first with: math.format( number, { fraction: 'ratio' } ) );
The result will be: 1e21 / 1
Make the same with: math…
-
Hi Mike,
I've noticed the performance of the pow() function to be significantly slower in Big.js compared to BigNumber.js.
A calculation such as `new Big("1.00096153846153846154").pow(2500)` c…