max

種類メソッド
書式 Math.max(値1,値2)
解説
2つの値を比較し大きい値を返します。
サンプルコード
function sampleCode()
{
txtField.data = Math.max(2,0.5);
}
sampleCode();
実際のスクリプトをダウンロード