2012-10-18 浮動小数点を整数にする方法 javascript enchant.js スマートフォンゲーム開発講座より Math.floor(1.618); //1 ~~(2.414) //2 (3.14159)|0 //3 parseInt(1.4142); //1