This manual page is for Mac OS X version 10.6.3

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.




math::roman(1.0)                                                                            math::roman(1.0)



____________________________________________________________________________________________________________

NAME
       math::roman - Tools for creating and manipulating roman numerals

SYNOPSIS
       package require Tcl  8.3

       package require math::roman  ?1.0?

       ::math::roman::toroman i

       ::math::roman::tointeger r

       ::math::roman::sort list

       ::math::roman::expr args

____________________________________________________________________________________________________________

DESCRIPTION
       ::math::roman  is a pure-Tcl library for converting between integers and roman numerals. It also pro-vides provides
       vides utility functions for sorting and performing arithmetic on roman numerals.

       This code was originally harvested from the Tcler's wiki at http://wiki.tcl.tk/1823 and  as  such  is
       free for any use for any purpose. Many thanks to the ingeneous folk who devised these clever routines
       and generously contributed them to the Tcl community.

       While written and tested under Tcl 8.3, I expect this library will work under  all  8.x  versions  of
       Tcl.

COMMANDS
       ::math::roman::toroman i
              Convert  an  integer  to roman numerals. The result is always in upper case. The value zero is
              converted to an empty string.

       ::math::roman::tointeger r
              Convert a roman numeral into an integer.

       ::math::roman::sort list
              Sort a list of roman numerals from smallest to largest.

       ::math::roman::expr args
              Evaluate an expression where the operands are all roman numerals.

       Of these commands both toroman and tointeger are exported for easier use. The other two are  not,  as
       they could interfer or be confused with existing Tcl commands.

BUGS, IDEAS, FEEDBACK
       This  document,  and  the  package  it  describes,  will undoubtedly contain bugs and other problems.
       Please report such in  the  category  math  ::  roman  of  the  Tcllib  SF  Trackers  [http://source-
       forge.net/tracker/?group_id=12883].   Please  also report any ideas for enhancements you may have for
       either package and/or documentation.

KEYWORDS
       conversion, integer, roman numeral

COPYRIGHT
       Copyright (c) 2005 Kenneth Green <kenneth.green@gmail.com>




Tcl Math Library                                    math                                    math::roman(1.0)

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Did this document help you? Yes It's good, but... Not helpful...