Skip to content

Commit

Permalink
Merge pull request #5 from JamesBingo/patch-1
Browse files Browse the repository at this point in the history
Fix typo for `convert` in  utilities doc
  • Loading branch information
dourvaris committed Jan 16, 2018
2 parents e5b4a94 + da211d2 commit 1bac09c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/utilities.rst
Expand Up @@ -17,12 +17,12 @@ The :meth:`raiblocks.conversion.convert` function takes ``int``, ``Decimal`` or
>>> convert(12, from_unit='XRB', to_unit='raw')
Decimal('1.2E+31')
>>> converter(0.4, from_unit='krai', to_unit='XRB')
>>> convert(0.4, from_unit='krai', to_unit='XRB')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: float values can lead to unexpected
precision loss, please use a Decimal or string
eg. converter('0.4', 'krai', 'XRB')
eg. convert('0.4', 'krai', 'XRB')
>>> convert('0.4', from_unit='krai', to_unit='XRB')
Decimal('0.0004')
Expand Down

0 comments on commit 1bac09c

Please sign in to comment.