Flash CS3 ドキュメンテーション |
|||
| ActionScript 2.0 リファレンスガイド > ActionScript クラス > Math > ceil (Math.ceil メソッド) | |||
public static ceil(x: Number ) : Number
指定された数値または式を切り上げた値を返します。数値の切り上げとは、その数値以上の最も近い整数にすることです。
対応バージョン : ActionScript 1.0、Flash Player 5 - Flash Player 4 では、Math クラスのメソッドとプロパティは、近似を使用してシミュレートされるため、Flash Player 5 でサポートされている非シミュレート Math 関数ほど正確ではありません。
x:Number - 数値または式。
Number - パラメータ x の値以上の最も近い整数。
次の例では、値 13 を返します。
Math.ceil(12.5);
floor (Math.floor メソッド), round (Math.round メソッド)
このページに新しいコメントが追加された場合に、電子メールでの通知を希望する。 | コメントレポート
現在のページ: http://livedocs.adobe.com/flash/9.0_jp/main/00001822.html