// 切り捨て var a = Math.floor( 1.5 ) ;
// 切り上げ var b = Math.ceil( 1.5 ) ;
// 四捨五入 var c = Math.round( 1.5 ) ;