Added round function and made API more consistent