Fixed the return types of rounding functions.