$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Peter (p.schregle_at_[hidden])
Date: 2008-04-28 09:25:33
I'm wondering how to use the numeric_conversion library to perform rounding 
based on types.
Assume I have a double value of 3.7. If I convert it to integer, the result 
should be 4. If I convert it to float, the result should be 3.7. The types I 
want to convert from and to are both specified in a template, i.e. they form 
an open set of types.
>From reading the numeric_conversion docs I tend to think that the library 
can do what I want, but I'm unable to find out how.
Can anybody help?
Peter