float x;spa
捨棄小數,就是對浮點數取整數:x.integerValuefloat
四捨五入:(x+0.5).integerValueco
向上取整:ceilf(x)浮點數
向下取整:floorf(x)