PDA

View Full Version : Simple Double Question


C++
04-23-2010, 08:42 AM
How do I truncate double like 99.998765 to something like 99.99 instead of 100.00? If some printf("%.2f", myDouble); gives 100 That is not what I want. Any help is appreciated