A Simple Function for Formatting Currency

Formatting currency is a nightmarishly difficult problem. Consider this correct value that would be used in India: 3,25,84,729.25 This function gives you fine-level control over currency formats and makes it simple to switch between dollars, shekels, rupees, and yen without writing separate routines.


March 26, 2012
URL:http://www.drdobbs.com/cpp/a-simple-function-for-formatting-currenc/232700238

Terms of Service | Privacy Statement | Copyright © 2024 UBM Tech, All rights reserved.