parseInt(3.14159) => 3
~~3.14159 => 3
还有:
向上取整 Math.ceil(3.14159) => 4
向下取整 Math.floor(3.14159) => 3
四舍五入 Math.round(3.14159) => 3
parseInt(3.14159) => 3
~~3.14159 => 3
还有:
向上取整 Math.ceil(3.14159) => 4
向下取整 Math.floor(3.14159) => 3
四舍五入 Math.round(3.14159) => 3
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。