An open API service indexing awesome lists of open source software.

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

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/