2008-10-15 絶対値が何桁からしりたい javascript x = -5555125.9987 x = Math.floor( Math.log(Math.abs(x))/Math.log(10) ) + 1 x