- 書式
- Math.★
- ◆= new Math()
- ★=メソッド または プロパティ
- ◆=生成する数学関数オブジェクト名
- 文例
- a = Math.abs(0.36)
- a = Math.floor("-99.91")
- myMath = new Math()
- 上位オブジェクト
- -
- 説明
- サイン、コサインなど数学関数を扱うオブジェクトです。新しいオブジェクトを作成する事もでき、プロパティの追加も可能です。
- 下位
abs,
acos,
asin,
atan,
atan2,
ceil,
cos,
exp,
floor,
log,
max,
min,
pow,
random,
round,
sin,
sqrt,
tan,
E,
LN10,
LN2,
LOG10E,
LOG2E,
PI,
SQRT1_2,
SQRT2