Skip to content

Allow more decimal places for tax rates#115

Open
raphaelm wants to merge 1 commit into
masterfrom
tax-rate-decimals
Open

Allow more decimal places for tax rates#115
raphaelm wants to merge 1 commit into
masterfrom
tax-rate-decimals

Conversation

@raphaelm

Copy link
Copy Markdown
Member

No description provided.

val taxrate = decimalFormat.format(taxrates[i].toDouble()).trimEnd('0').trimEnd(decimalFormat.decimalFormatSymbols.decimalSeparator)
splitline(
(i + 65).toChar() + " " + DecimalFormat("0.00").format(taxrates[i].toDouble()) + "%:",
(i + 65).toChar() + ": " + taxrate + " %",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
(i + 65).toChar() + ": " + taxrate + " %",
(i + 65).toChar() + " " + taxrate + " %:",

is there a special reason that the : moved?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it looks better / I think it makes more sense. But it's unrelated to the actual change here, of course

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants