How to convert 12345 to $123.45

1. First create the variable with the data.
The variable should be a "currency" type

2. Create a function that will divide the variable by 100
e.g. VAR_DOLLAR = VAR_DOLLAR / 100

3. Use the format "%m" ( m for 'money') when you print the variable.
This will add the dollar sign and and thousands commas.

0 Comments

Article is closed for comments.
Powered by Zendesk