
2 Jun
2008
2 Jun
'08
9:35 p.m.
Rather than an implementation, could you provide an example of a documentation, stating precisely what the return value should be?
Basically, I just want to return the numeric value that is returned by sprintf. Example: char ch[255]; sprintf(ch, "%.2f", 333.444); boost::numeric_cast<double>(ch) == boost::round(333.444,2) == 33.44;