https://github.com/rubilmax/ethers-decimal-number
➗ Useful ethers BigNumber wrapper helping with fixed-point arithmetics and formatting
https://github.com/rubilmax/ethers-decimal-number
Last synced: about 1 year ago
JSON representation
➗ Useful ethers BigNumber wrapper helping with fixed-point arithmetics and formatting
- Host: GitHub
- URL: https://github.com/rubilmax/ethers-decimal-number
- Owner: Rubilmax
- License: mit
- Created: 2022-10-12T15:06:48.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-13T14:25:17.000Z (over 3 years ago)
- Last Synced: 2025-02-06T13:33:27.933Z (over 1 year ago)
- Language: TypeScript
- Size: 88.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ethers-fixednumber
[![npm package][npm-img]][npm-url]
[![Build Status][build-img]][build-url]
[![Downloads][downloads-img]][downloads-url]
[![Issues][issues-img]][issues-url]
[![Commitizen Friendly][commitizen-img]][commitizen-url]
[![Semantic Release][semantic-release-img]][semantic-release-url]
> ➗ Useful ethers BigNumber wrapper helping with fixed-point arithmetics and formatting
## Install
```bash
npm install ethers-fixednumber
```
```bash
yarn add ethers-fixednumber
```
## Usage
```typescript
import { FixedNumber } from "ethers-fixednumber";
FixedNumber.from("1.2");
```
[build-img]: https://github.com/Rubilmax/ethers-fixednumber/actions/workflows/release.yml/badge.svg
[build-url]: https://github.com/Rubilmax/ethers-fixednumber/actions/workflows/release.yml
[downloads-img]: https://img.shields.io/npm/dt/ethers-fixednumber
[downloads-url]: https://www.npmtrends.com/ethers-fixednumber
[npm-img]: https://img.shields.io/npm/v/ethers-fixednumber
[npm-url]: https://www.npmjs.com/package/ethers-fixednumber
[issues-img]: https://img.shields.io/github/issues/Rubilmax/ethers-fixednumber
[issues-url]: https://github.com/Rubilmax/ethers-fixednumber/issues
[semantic-release-img]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
[semantic-release-url]: https://github.com/semantic-release/semantic-release
[commitizen-img]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg
[commitizen-url]: http://commitizen.github.io/cz-cli/