1math::roman(1.0)                                              math::roman(1.0)
2
3
4
5______________________________________________________________________________
6

NAME

8       math::roman - Tools for creating and manipulating roman numerals
9

SYNOPSIS

11       package require Tcl  8.3
12
13       package require math::roman  ?1.0?
14
15       ::roman::toroman i
16
17       ::roman::tointeger r
18
19       ::roman::sort list
20
21       ::roman::expr args
22
23_________________________________________________________________
24

DESCRIPTION

26       math::roman  is  a pure-Tcl library for converting between integers and
27       roman numerals. It also provides utility functions for sorting and per‐
28       forming arithmetic on roman numerals.
29
30       This   code   was   originally  harvested  from  the  Tcler's  wiki  at
31       http://wiki.tcl.tk/1823 and as such is free for any use  for  any  pur‐
32       pose.  Many  thanks to the ingeneous folk who devised these clever rou‐
33       tines and generously contributed them to the Tcl community.
34
35       While written and tested under Tcl 8.3, I expect this library will work
36       under all 8.x versions of Tcl.
37

COMMANDS

39       ::roman::toroman i
40              Convert  an  integer  to roman numerals. The result is always in
41              upper case. The value zero is converted to an empty string.
42
43       ::roman::tointeger r
44              Convert a roman numeral into an integer.
45
46       ::roman::sort list
47              Sort a list of roman nnumerals from smallest to largest.
48
49       ::roman::expr args
50              Evaluate an expression where the operands are all  roman  numer‐
51              als.
52

KEYWORDS

54       conversion, integer, roman numeral
55
57       Copyright (c) 2005 Kenneth Green <kenneth.green@gmail.com>
58
59
60
61
62Tcl Math Library                     math                     math::roman(1.0)
Impressum