float x;spa
舍弃小数,就是对浮点数取整数:x.integerValuefloat
四舍五入:(x+0.5).integerValueco
向上取整:ceilf(x)浮点数
向下取整:floorf(x)