1、parseInt( )
解析一个字符串,并返回一个整数
2、parseFloat( )
解析一个字符串,并返回一个浮点数
3、Number.isInteger( )
用来判断一个数值是否为整数
4、Math.ceil( )
对一个数字向上取整
5、Math.floor( )
对一个数字向下取整
6、Math.round( )
对一个数字四舍五入
7、Math.random( )
取随机数
8、Math.max( )
取最大值
9、Math.min( )
取最小值
10、Math.trunc( )
返回一个数的整数部分
11、Math.sign( )
用来判断一个数是正数、负数、正零、负零、NaN
原文:https://www.cnblogs.com/cuishuangshuang/p/13364187.html