We're updating the issue view to help you get more done. 

Add compact currency forms

Description

We need to be able to format currency forms in a compact manner also, such as:

$135B

In most cases, this can be done by using the Currency format in the compact number patterns that already exist. For example, for English we have "000B" for the compact pattern for the item above. So we can use the existing framework to format with the two patterns:

x = 135
curpat = "$#,###"
result = "$135"
compat = "000B" // eg prefix = "", suffix = "B"
result = "$135B"

However, in some languages this may produce odd results.

x = 135
curpat = "#.###$"
result = "135$"
compat = "000B" // eg prefix = "", suffix = "B"
result = "135$B"

It might be that "135B$" would be a better way to do that.

So, I suggest that we build samples using the combination approach, and see if it acceptable. If so, we can just document the usage. If not, we can look at adding alternate patterns for languages that need it (probably only those that we know need it, to prevent confusing others.)

xpath

None

locale

None

Status

Priority

major

Assignee

Mark Davis

Reporter

Mark Davis

tracReporter

mark

Reviewer

John Emmons

Labels

None

Components

Fix versions

phase

dsub