| Package | system.numeric |
| Class | public class RomanNumber |
| Inheritance | RomanNumber Object |
Roman numerals are commonly used in numbered lists (in outline format), clock faces, pages preceding the main body of a book, chord triads in music analysis, the numbering of movie publication dates, successive political leaders or children with identical names, and the numbering of some annual sport events.
Links :
| Method | Defined By | ||
|---|---|---|---|
RomanNumber(value:*)
Creates a new RomanNumber instance. | RomanNumber | ||
parse(value:*):String
Parse the specified value. | RomanNumber | ||
parse(num:*):String [static]
This static method parse the specified value and return this roman numerals String representation. | RomanNumber | ||
parseRomanString(roman:String):uint [static]
Parses a roman String representation in this uint decimal representation. | RomanNumber | ||
toString():String
Returns the String representation of the object. | RomanNumber | ||
valueOf():uint
Returns the primitive value of this object. | RomanNumber | ||
| Constant | Defined By | ||
|---|---|---|---|
| MAX : uint = 3999 [static]
The maximum parsing value. | RomanNumber | ||
| MIN : uint = 0 [static]
The minimum parsing value. | RomanNumber | ||
| RomanNumber | () | Constructor |
public function RomanNumber(value:*)Creates a new RomanNumber instance.
Parametersvalue:* (default = NaN) — The decimal uint value of the RomanNumber or a String representation of the roman numerals object.
|
| parse | () | method |
public function parse(value:*):StringParse the specified value.
Parameters
value:* (default = NaN) |
String |
| parse | () | method |
public static function parse(num:*):StringThis static method parse the specified value and return this roman numerals String representation.
Parameters
num:* (default = NaN) |
String |
| parseRomanString | () | method |
public static function parseRomanString(roman:String):uintParses a roman String representation in this uint decimal representation.
Parameters
roman:String |
uint |
| toString | () | method |
public function toString():StringReturns the String representation of the object.
ReturnsString — the String representation of the object.
|
| valueOf | () | method |
public function valueOf():uintReturns the primitive value of this object.
Returnsuint — the primitive value of this object.
|
| MAX | Constant |
public static const MAX:uint = 3999The maximum parsing value.
| MIN | Constant |
public static const MIN:uint = 0The minimum parsing value.