great-tables icon indicating copy to clipboard operation
great-tables copied to clipboard

Add `compact` to `fmt_currency`

Open gartinian opened this issue 8 months ago • 1 comments

Prework

Proposal

Add the compact parameter to fmt_currency, so that values such as $12,345 can render as $12K. The intention is to mirror the behavior of compact in other formatters, such as fmt_integer.

I have reviewed the code and believe I know where changes should be made. I am happy to submit a PR if there is alignment on moving forward.

gartinian avatar Mar 26 '25 12:03 gartinian