Packagesystem.numeric
Classpublic class RomanNumber
InheritanceRomanNumber Inheritance Object

Roman numerals are a numeral system originating in ancient Rome, adapted from Etruscan numerals.

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 :

  • http://en.wikipedia.org/wiki/Roman_numerals
  • http://netzreport.googlepages.com/online_converter_for_dec_roman.html


  • Public Methods
     MethodDefined 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
    Public Constants
     ConstantDefined By
      MAX : uint = 3999
    [static] The maximum parsing value.
    RomanNumber
      MIN : uint = 0
    [static] The minimum parsing value.
    RomanNumber
    Constructor Detail
    RomanNumber()Constructor
    public function RomanNumber(value:*)

    Creates a new RomanNumber instance.

    Parameters
    value:* (default = NaN) — The decimal uint value of the RomanNumber or a String representation of the roman numerals object.
    Method Detail
    parse()method
    public function parse(value:*):String

    Parse the specified value.

    Parameters

    value:* (default = NaN)

    Returns
    String
    parse()method 
    public static function parse(num:*):String

    This static method parse the specified value and return this roman numerals String representation.

    Parameters

    num:* (default = NaN)

    Returns
    String
    parseRomanString()method 
    public static function parseRomanString(roman:String):uint

    Parses a roman String representation in this uint decimal representation.

    Parameters

    roman:String

    Returns
    uint
    toString()method 
    public function toString():String

    Returns the String representation of the object.

    Returns
    String — the String representation of the object.
    valueOf()method 
    public function valueOf():uint

    Returns the primitive value of this object.

    Returns
    uint — the primitive value of this object.
    Constant Detail
    MAXConstant
    public static const MAX:uint = 3999

    The maximum parsing value.

    MINConstant 
    public static const MIN:uint = 0

    The minimum parsing value.