套件 | com.adobe.fiber.runtime.lib |
類別 | public class MathFunc |
繼承 | MathFunc Object |
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
公用方法
方法 | 定義自 | ||
---|---|---|---|
[靜態]
The absolute value of a number. | MathFunc | ||
[靜態]
Determines the closest integer that is greater than or equal to a specified number. | MathFunc | ||
[靜態]
Converts a real number to an integer. | MathFunc | ||
[靜態]
Calculates the closest integer that is less than or equal to a number. | MathFunc | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
[靜態]
Returns the larger of two numbers. | MathFunc | ||
[靜態]
Returns the smaller of two numbers. | MathFunc | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
[靜態]
Rounds a number to the closest integer. | MathFunc | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
[靜態]
Returns the sign of a number
| MathFunc | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
方法詳細資訊
abs | () | 方法 |
ceiling | () | 方法 |
public static function ceiling(n:Number):Number
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Determines the closest integer that is greater than or equal to a specified number.
參數
n:Number — Number
|
Number — Ceiling of the number.
|
fix | () | 方法 |
public static function fix(n:Number):Number
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Converts a real number to an integer. If number is greater than or equal to 0, the closest integer less than or equal to number. If number is less than 0, the closest integer greater than or equal to number.
參數
n:Number — Number
|
Number — Input converted to an integer
|
floor | () | 方法 |
max | () | 方法 |
min | () | 方法 |
round | () | 方法 |
public static function round(n:Number):Number
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Rounds a number to the closest integer. Rounds numbers that end with .5 up to the nearest integer.
參數
n:Number — Number
|
Number — Number rounded
|
sgn | () | 方法 |
Tue Jun 12 2018, 03:47 PM Z