void CheckDoubleCast(double val) { Decimal dec; dec.AssignDouble(val); BOOST_CHECK_CLOSE(val, dec.ToDouble(), 1E-10); }