cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
Displaying trailing zeroes with money
Displaying trailing zeroes with money
Apr 7, 2010 at 5:05pm UTC
joshky
(87)
I know how to use iomanip.h to set display parameters for console applications, but what about Win32 Applications? How do I get a textbox or label to display trailing zeroes when setting the value with the .ToString() function. Example:
1
2
double
amount=1.50 textbox->Text=amount.ToString();
//displays 1.5
Topic archived. No new replies allowed.