I am having a difficult time formatting currency. Please can anyone help?

If this is the number / It should appear:


$1,000.0 / $1.0 K

$1,000,000.0 / $1.0 M

$10,000,000.0 / $10.0 M

$10,000,000,000.0 / $10.0 B

$10,000,000,000,000.0 / $10.0 T

$(1,000.0) / ($1.0 K)

$(1,000,000.0) / ($1.0 M)

$(10,000,000.0) / ($10.0 M)

$(10,000,000,000.0) / ($10.0 B)

$(10,000,000,000,000.0) / ($10.0 T)

Thank you in advance for looking.