Spring '21 (API version 51.0)
System
Math の項目は次のとおりです。
public static final Double E
型: Double
public static final Double PI
Math のメソッドは次のとおりです。すべてのメソッドが静的です。
public static Decimal abs(Decimal decimalValue)
型: Decimal
public static Double abs(Double doubleValue)
public static Integer abs(Integer integerValue)
型: Integer
public static Long abs(Long longValue)
型: Long
public static Decimal acos(Decimal decimalAngle)
public static Double acos(Double doubleAngle)
public static Decimal asin(Decimal decimalAngle)
public static Double asin(Double doubleAngle)
public static Decimal atan(Decimal decimalAngle)
public static Double atan(Double doubleAngle)
public static Decimal atan2(Decimal xCoordinate, Decimal yCoordinate)
public static Double atan2(Double xCoordinate, Double yCoordinate)
public static Decimal cbrt(Decimal decimalValue)
public static Double cbrt(Double doubleValue)
public static Decimal ceil(Decimal decimalValue)
public static Double ceil(Double doubleValue)
public static Decimal cos(Decimal decimalAngle)
public static Double cos(Double doubleAngle)
public static Decimal cosh(Decimal decimalAngle)
public static Double cosh(Double doubleAngle)
public static Decimal exp(Decimal exponentDecimal)
public static Double exp(Double exponentDouble)
public static Decimal floor(Decimal decimalValue)
public static Double floor(Double doubleValue)
public static Decimal log(Decimal decimalValue)
public static Double log(Double doubleValue)
public static Decimal log10(Decimal decimalValue)
public static Double log10(Double doubleValue)
public static Decimal max(Decimal decimalValue1, Decimal decimalValue2)
public static Double max(Double doubleValue1, Double doubleValue2)
public static Integer max(Integer integerValue1, Integer integerValue2)
public static Long max(Long longValue1, Long longValue2)
public static Decimal min(Decimal decimalValue1, Decimal decimalValue2)
public static Double min(Double doubleValue1, Double doubleValue2)
public static Integer min(Integer integerValue1, Integer integerValue2)
public static Long min(Long longValue1, Long longValue2)
public static Integer mod(Integer integerValue1, Integer integerValue2)
public static Long mod(Long longValue1, Long longValue2)
public static Double pow(Double doubleValue, Double exponent)
public static Double random()
public static Decimal rint(Decimal decimalValue)
public static Double rint(Double doubleValue)
public static Integer round(Double doubleValue)
public static Integer round(Decimal decimalValue)
この丸めモードは、連続する計算に対して繰り返し適用される場合、統計的に累積エラーを最小化します。
public static Long roundToLong(Decimal decimalValue)
public static Long roundToLong(Double doubleValue)
public static Decimal signum(Decimal decimalValue)
public static Double signum(Double doubleValue)
public static Decimal sin(Decimal decimalAngle)
public static Double sin(Double doubleAngle)
public static Decimal sinh(Decimal decimalAngle)
public static Double sinh(Double doubleAngle)
public static Decimal sqrt(Decimal decimalValue)
public static Double sqrt(Double doubleValue)
public static Decimal tan(Decimal decimalAngle)
public static Double tan(Double doubleAngle)
public static Decimal tanh(Decimal decimalAngle)
public static Double tanh(Double doubleAngle)