Skip to content

Math

round

四舍五入

ts
Math.round(4.6)  // 5

floor

向下取整

ts
Math.floor(4.6)  // 4

ceil

向上取整

ts
Math.ceil(4.1)   // 5