-
`amount` parameter in `lock`, `unlock` and `submitOrder` methods should use `BigNumber` type.
JavaScript numbers are stored in 64-bit format whereas Ethereum uses integers up to 256-bit. Current im…
-
Currently we have many versions of `bn.js` and a few of `bignumber.js`. We need to investigate the following:
1. Can these packages be used interchangeably?
2. If so, which one should we use?
3. Can …
-
See [here](https://github.com/zeppelinos/zos/pull/462) for an instance where an event argument has a value with type `uint64[3]`.
-
- E.g. for `BigNumber.js`. Also, try not to receive (nor return?) `BigNumber` instances in functions - receive `BigNumber.Value` interface instead. Try to not break the behavior of `instanceof BigNum…
-
I'm not sure if this is an issue or a lack of my understanding on how bignumber works but I receive this error when I try create numbers larger than 10^19.
For example this creates the `invalid BigNu…
-
environment :vue3+vite+element-plus
when used 🔢:
```javascript
import JSONbig from 'json-bigint'
let json = '{ "value" : 9223372036854775807, "v2": 123 }'
let r1 = JSONbig.parse(json)
console…
-
json-bigint.js:212 Uncaught (in promise) TypeError: BigNumber is not a constructor
at number (json-bigint.js:212)
at value (json-bigint.js:357)
at object (json-bigint.js:332)
at va…
-
Add more zeroes or move the decimal dot in the string.
Thanks to @wanderer for the idea.
-
### Possible implementation
```java
public class BigNumber{
private int numerator;
private int denominator;
private BigDecimal decimal = new BigDecimal(numerator/denominator);
…
-
### Description
I have this code
```typescript
async function approveTokenAllowanceWithChecks(client:Client, ownerId:AccountId, spenderId:ContractId, tokenId:TokenId, tokenAllowanceTiny:BigNumb…