Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
The MathFunc class defines the implementations of the expression runtime functions for Math functions
in the Adobe application modeling language.
public static function abs(n:Number):Number
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
The absolute value of a number.
Parameters
Returns public static function ceiling(n:Number):Number
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Determines the closest integer that is greater than or equal to a specified number.
Parameters
Returns | Number — Ceiling of the number.
|
public static function fix(n:Number):Number
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | 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.
Parameters
Returns | Number — Input converted to an integer
|
public static function floor(n:Number):Number
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Calculates the closest integer that is less than or equal to a number.
Parameters
Returns public static function max(n1:Number, n2:Number):Number
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Returns the larger of two numbers.
Parameters
Returns | Number — Larger of the two input numbers
|
public static function min(n1:Number, n2:Number):Number
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Returns the smaller of two numbers.
Parameters
Returns | Number — Smaller of the two input numbers
|
public static function round(n:Number):Number
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Rounds a number to the closest integer.
Rounds numbers that end with .5 up to the nearest integer.
Parameters
Returns public static function sgn(n:Number):int
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Returns the sign of a number
Parameters
Returns | int — -1 if num < 0, 0 if num = 0 and 1 if num > 0
|