Paket | com.adobe.fiber.runtime.lib |
Klass | public class MathFunc |
Arv | MathFunc Object |
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Metod | Definieras med | ||
---|---|---|---|
[statisk]
The absolute value of a number. | MathFunc | ||
[statisk]
Determines the closest integer that is greater than or equal to a specified number. | MathFunc | ||
[statisk]
Converts a real number to an integer. | MathFunc | ||
[statisk]
Calculates the closest integer that is less than or equal to a number. | MathFunc | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
[statisk]
Returns the larger of two numbers. | MathFunc | ||
[statisk]
Returns the smaller of two numbers. | MathFunc | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
[statisk]
Rounds a number to the closest integer. | MathFunc | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
[statisk]
Returns the sign of a number
| MathFunc | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
Returnerar det angivna objektets primitiva värde. | Object |
abs | () | metod |
ceiling | () | metod |
public static function ceiling(n:Number):Number
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Determines the closest integer that is greater than or equal to a specified number.
Parametrar
n:Number — Number
|
Number — Ceiling of the number.
|
fix | () | metod |
public static function fix(n:Number):Number
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | 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.
Parametrar
n:Number — Number
|
Number — Input converted to an integer
|
floor | () | metod |
public static function floor(n:Number):Number
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Calculates the closest integer that is less than or equal to a number.
Parametrar
n:Number — Number
|
Number — Floor of the number
|
max | () | metod |
public static function max(n1:Number, n2:Number):Number
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns the larger of two numbers.
Parametrar
n1:Number — Number
| |
n2:Number — Number
|
Number — Larger of the two input numbers
|
min | () | metod |
public static function min(n1:Number, n2:Number):Number
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns the smaller of two numbers.
Parametrar
n1:Number — Number
| |
n2:Number — Number
|
Number — Smaller of the two input numbers
|
round | () | metod |
public static function round(n:Number):Number
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Rounds a number to the closest integer. Rounds numbers that end with .5 up to the nearest integer.
Parametrar
n:Number — Number
|
Number — Number rounded
|
sgn | () | metod |
public static function sgn(n:Number):int
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns the sign of a number
Parametrar
n:Number — Number
|
int — -1 if num < 0, 0 if num = 0 and 1 if num > 0
|
Tue Jun 12 2018, 01:40 PM Z