Skip to content

Commit

Permalink
📝 update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
chase-manning committed Aug 29, 2023
1 parent 35f2a6d commit fabeec6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,19 @@ import { ScaledNumber } from 'scaled-number';
const scaledNumber = new ScaledNumber(BigInt(123));
```

### From BigNumber

```ts
new ScaledNumber(bigNumber: BigNumber, decimals?: number);
```

```ts
import { ScaledNumber } from 'scaled-number';
import { BigNumber } from '@ethersproject/bignumber';

const scaledNumber = new ScaledNumber(BigNumber.from(123));
```

### From Unscaled

```ts
Expand Down

0 comments on commit fabeec6

Please sign in to comment.