Skip to content

Commit

Permalink
feat: Updating README
Browse files Browse the repository at this point in the history
  • Loading branch information
aholstenson committed Apr 16, 2019
1 parent acbccb6 commit 2db2d89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -38,7 +38,7 @@ imported. This design is to allow the library to take advantage of tree-shaking.

Create an instance of the numeric type from a regular JavaScript number.

* `static NumericType.fromString(value: string): NumericType`
* `static NumericType.parse(value: string): NumericType`

Create an instance of the numeric type from a string.

Expand Down Expand Up @@ -82,7 +82,7 @@ implemented on top of `number` available:
import { Decimal, multiply } from 'numeric-types/decimal';

const a = Decimal.fromNumber(0.1);
const b = Decimal.fromString(12);
const b = Decimal.parse('12');

const ab = multiply(a, b);
console.log(ab.toString());
Expand Down

0 comments on commit 2db2d89

Please sign in to comment.