Skip to content

Commit

Permalink
docs: generate docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Jan 5, 2019
1 parent 0375548 commit b0677d1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Extracts price from an arbitrary text input.

* [extract-price 🤑](#extract-price)
* [Usage](#extract-price-usage)
* [FAQ](#extract-price-faq)
* [What is the reason the price amount is returned in cents?](#extract-price-faq-what-is-the-reason-the-price-amount-is-returned-in-cents)
* [Related projects](#extract-price-related-projects)


Expand Down Expand Up @@ -49,6 +51,22 @@ extractPrice('does not100 100.20extract ambig0u0s numbers as price');

```

<a name="extract-price-faq"></a>
## FAQ

<a name="extract-price-faq-what-is-the-reason-the-price-amount-is-returned-in-cents"></a>
### What is the reason the price amount is returned in cents?

Because:

```
> 1.03 - 0.42
< 0.6100000000000001
```

See: https://stackoverflow.com/q/3730019/368691

<a name="extract-price-related-projects"></a>
## Related projects

Expand Down

0 comments on commit b0677d1

Please sign in to comment.