Java 数値
14個の関数
Math.absMath.abs(a)絶対値を返します。
Math.maxMath.max(a, b)2つの値のうち大きい方を返します。
Math.minMath.min(a, b)2つの値のうち小さい方を返します。
Math.powMath.pow(base, exp)第1引数を第2引数で累乗した値を返します。
Math.sqrtMath.sqrt(a)正の平方根を返します。
Math.ceilMath.ceil(a)引数以上の最小の整数を返します。
Math.floorMath.floor(a)引数以下の最大の整数を返します。
Math.roundMath.round(a)引数に最も近い整数を返します。
Math.randomMath.random()0.0以上1.0未満のdouble値を返します。
Math.logMath.log(a)引数の自然対数を返します。
Integer.parseIntInteger.parseInt(str, radix?)文字列引数を符号付き整数として解析します。
Double.parseDoubleDouble.parseDouble(str)文字列引数が表すdoubleを返します。
Integer.toBinaryStringInteger.toBinaryString(n)整数の2進数表現を文字列として返します。
Integer.toHexStringInteger.toHexString(n)整数の16進数表現を文字列として返します。
