Skip to content

Commit

Permalink
Reword for clarity
Browse files Browse the repository at this point in the history
After reading the original version, I am led to expect `.value` to be string type - it is `number`.
Also, because the words `integer` and `string` are styled as <code>, it suggests `integer` is also a JS type, which is not the case.
  • Loading branch information
sudomann authored Jan 25, 2021
1 parent 0e48bd4 commit c0d88ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/01-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ By default, currency resolves to a `string` value.
document.getElementsByTagName("input")[0].value = currency(1234.56).add(6.44); // 1241.00
```

If you need access to the raw numbers, the value is stored as both an `integer` and a `string`, which you can access with `.intValue` or `.value`;
If you need access to the value's digits, you can access them with `.value` or `.intValue` (stored without a decimal seperator). Both are `number` type.

```js
// Get the internal values
Expand Down

0 comments on commit c0d88ee

Please sign in to comment.