replace the using of function roundf with std::tr1::round