MYSQL——round函数

ROUND(数字,保留位数)

round(x,2)保留两位小数:round(gdp/population,2)

Australia 66442.38

round(x,0)保留0位小数:round(gdp/population,0)

Australia 66442

round(x,-3)整数取整:round(gdp/population,0)

Australia 66000

你可能感兴趣的:(MySQL,mysql)