Boost logo

Boost :

From: Tom Brinkman (reportbase_at_[hidden])
Date: 2008-06-02 17:35:20


>> 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;


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk