Hello, I'm new to programming and I'm having a hard time with what one would assume would be simple. But without using locales, how do you format a decimal number, like 30498503.483 into $30,498,503.48? Basically I want to store a decimal value in a variable, and then convert the contents of the variable into US currency and print it to the screen. I do not need any built-in currency converters like locales, just need to learn how to format a numeric decimal value into a currency string and print it to the screen.
Thank you for any help on this, I appreciate your time.