Package | org.as3coreaddendum.system |
Class | public class NumericRounding |
Inheritance | NumericRounding ![]() ![]() |
This is a type-safe enumeration class, which means there is no possibility of creating instances externally. All acceptable values will be created automaticaly by this class internaly, through its constants.
Method | Defined By | ||
---|---|---|---|
NumericRounding(name:String, ordinal:int)
Constructor, creates a new NumericRounding object. | NumericRounding | ||
![]() | compareTo(o:*):int
Compares this enum with the specified object for order. | Enum | |
![]() | equals(other:*):Boolean
Compares the target object for equality with this object. | Enum | |
![]() | toSource():String
Returns the source code String representation of the object. | Enum | |
![]() | toString():String
Returns the name of this enum constant, as contained in the declaration. | Enum | |
![]() | valueOf():int
Returns the primitive value of the object. | Enum |
Constant | Defined By | ||
---|---|---|---|
CEIL : NumericRounding [static]
Defines the constant that indicates that a numeric value should be rounded up. | NumericRounding | ||
FLOOR : NumericRounding [static]
Defines the constant that indicates that a numeric value should be rounded down. | NumericRounding | ||
NONE : NumericRounding [static]
Defines the constant that indicates that a numeric value should not be rounded. | NumericRounding | ||
ROUND : NumericRounding [static]
Defines the constant that indicates that a numeric value should be rounded down or up, whichever is closer. | NumericRounding |
NumericRounding | () | Constructor |
public function NumericRounding(name:String, ordinal:int)
Constructor, creates a new NumericRounding object.
Parametersname:String — The name of this enumeration constant.
| |
ordinal:int — The ordinal of this enumeration constant, that is its position in the enum declaration (where the initial constant is assigned an ordinal of zero).
|
IllegalOperationError — If there is an attempt to instantiation outside the internal code of this class. All acceptable values will be created automaticaly by this class internaly, through the constants. There's no possibility to use this constructor externally.
|
CEIL | Constant |
public static const CEIL:NumericRounding
Defines the constant that indicates that a numeric value should be rounded up.
FLOOR | Constant |
public static const FLOOR:NumericRounding
Defines the constant that indicates that a numeric value should be rounded down.
NONE | Constant |
public static const NONE:NumericRounding
Defines the constant that indicates that a numeric value should not be rounded.
ROUND | Constant |
public static const ROUND:NumericRounding
Defines the constant that indicates that a numeric value should be rounded down or up, whichever is closer.