Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,7 +59,7 @@ As a flavour of Joda-Money, here is some example code: | |
|
||
// convert to GBP using a supplied rate | ||
<b>BigDecimal conversionRate = ...; // obtained from code outside Joda-Money</b> | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
whatthefrog
|
||
<b>Money moneyGBP = money.convertTo(CurrencyUnit.GBP, conversionRate);</b> | ||
<b>Money moneyGBP = money.convertedTo(CurrencyUnit.GBP, conversionRate, RoundingMode.HALF_UP);</b> | ||
|
||
// use a BigMoney for more complex calculations where scale matters | ||
<b><a href="apidocs/org/joda/money/BigMoney.html">BigMoney</a> moneyCalc = money.toBigMoney();</b> | ||
|
1 comment
on commit 53cb3dd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah typo is already fixed it seems, but not yet released to website
http://www.joda.org/joda-money/
I would specify that the
conversionRate
is expected to be given as a multiplier ...This is a short-coming of your implementation, not a deal breaker though, as one can do the division before calling your method indeed