File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
moneta-core/src/main/asciidoc Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -552,13 +552,13 @@ MonetaryAmount roundedAmount = amt.with(rounding); // uses Monetary.getRounding(
552552
553553For Swiss Francs also a corresponding cash rounding is accessible. In Switzerland the smallest minor in cash are
5545545 Rappen, so everything must be rounded to minors dividable by 5. This rounding can be accessed by setting the
555- +cashRounding=tru + property, when accessing a currency rounding for CHF:
555+ +cashRounding=true + property, when accessing a currency rounding for CHF:
556556
557557[source,java]
558558.Access Swiss Francs Cash Rounding
559559--------------------------------------------
560- MonetaryRounding rounding = Monetary.getRounding(Monetary.getCurrency("CHF"),
561- RoundingQueryBuilder.of().set("cashRounding", true).build()
560+ MonetaryRounding rounding = Monetary.getRounding(
561+ RoundingQueryBuilder.of().setCurrency(Monetary.getCurrency("CHF")). set("cashRounding", true).build()
562562);
563563MonetaryAmount amt = ...;
564564MonetaryAmount roundedAmount = amt.with(rounding); // amount rounded in CHF cash rounding
You can’t perform that action at this time.
0 commit comments