Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Formatting floats/doubles with locale.h library

$
0
0
Hi, I have question about the best way to format a number. I did some research and I think it can be done using the locale.h library? I've trying it for quite some time and have gotten nowhere. I need to be able to take a float/double and format into a currency type. Ex: 54895.52 should be printed as $54,895.52

Any help would be greatly appreciated!! Thanks

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>