Skip to content

Commit

Permalink
📚 docs(README): Add example.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Jun 19, 2020
1 parent b41420e commit c5133e7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ Parent is [@aureooms/js-algorithms](https://github.com/aureooms/js-algorithms).
> :warning: The code needs a ES2015+ polyfill to run (`regeneratorRuntime`),
> for instance [@babel/polyfill](https://babeljs.io/docs/usage/polyfill).
```js
QQ.from('0.1').add(QQ.from('0.2')).toFixed(); // 0.3
QQ.from(355,113).toFixed(); // 3.|1415929203539823008849557522123893805309734513274336283185840707964601769911504424778761061946902654867256637168
```

[![License](https://img.shields.io/github/license/aureooms/js-rational-field.svg)](https://raw.githubusercontent.com/aureooms/js-rational-field/master/LICENSE)
[![Version](https://img.shields.io/npm/v/@aureooms/js-rational-field.svg)](https://www.npmjs.org/package/@aureooms/js-rational-field)
[![Build](https://img.shields.io/travis/aureooms/js-rational-field/master.svg)](https://travis-ci.org/aureooms/js-rational-field/branches)
Expand Down

0 comments on commit c5133e7

Please sign in to comment.