【mysql】上取整函数,下取整和四舍五入

1.ceil () 向上取整

例: ceil(1.2) = 2

2.floor () 向下取整

例: floor(1.2) = 1

3.round() 四舍五入

Author: jhonse

Jhonse技术博客: http://blog.jhonse.com

Leave a Reply

Your email address will not be published. Required fields are marked *