id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 6047,functions round_cast and trunc_cast,1czajnik@…,John Maddock,"The functions are general versions of iround, and alike functions. {{{ template < class R, class T, class Policy > inline R round_cast( T const& x, Policy const& pol ) { BOOST_MATH_STD_USING T r = boost::math::round(x,pol); if( r > boost::integer_traits::const_max || r < boost::integer_traits::const_min ) return static_cast( boost::math::policies::raise_rounding_error( ""cz::ar::round_cast(%1%)"", 0, x, pol ) ); return static_cast(r); } template < class R, class T > inline R round_cast( T const& x ) { return round_cast( x, boost::math::policies::policy<>() ); } }}} Analogically for trunc()...",Feature Requests,new,To Be Determined,math,Boost Development Trunk,Problem,,,