Skip to content

Commit

Permalink
0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
librasteve committed Jun 21, 2024
1 parent 78721b3 commit 967a957
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 21 deletions.
4 changes: 4 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ Revision history for Slang::Roman

{{$NEXT}}

0.6 2024-06-21T14:10:54+01:00
- Add reference section to README
- Implement reference section subtractive standard

0.5 2023-09-22T11:16:56+02:00
- Fix issue with "to-roman" introduced in 0.3
- Add support for running under RakuAST, including deparsing
Expand Down
4 changes: 2 additions & 2 deletions META6.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
},
"resources": [
],
"source-url": "git://github.com/raku-community-modules/Slang-Roman.git",
"source-url": "https://github.com/raku-community-modules/Slang-Roman.git",
"tags": [
"ROMAN",
"NUMERALS"
],
"test-depends": [
],
"version": "0.5"
"version": "0.6"
}
19 changes: 0 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,6 @@ Future enhancements will include expansions to printf/sprintf with a custom form

While it handles both additive and subtractive Roman numerals, it doesn't check that they're properly formatted. For instance 'IC' should be a compile-time error but instead it'll generate 101 as if nothing of consequence happened.

REFERENCE
=========

According to [Wikipedia](https://en.wikipedia.org/wiki/Roman_numerals), the standard form is:

| # | Thousands | Hundreds | Tens | Units |
|---|-----------|----------|------|-------|
| 1 | M | C | X | I |
| 2 | MM | CC | XX | II |
| 3 | MMM | CCC | XXX | III |
| 4 | | CD | XL | IV |
| 5 | | D | L | V |
| 6 | | DC | LX | VI |
| 7 | | DCC | LXX | VII |
| 8 | | DCCC | LXXX | VIII |
| 9 | | CM | XC | IX |

The numerals for 4 (IV) and 9 (IX) are written using subtractive notation,where the smaller symbol (I) is subtracted from the larger one (V, or X), thus avoiding the clumsier IIII and VIIII. Subtractive notation is also used for 40 (XL), 90 (XC), 400 (CD) and 900 (CM). These are the only subtractive forms in standard use.

AUTHOR
======

Expand Down

0 comments on commit 967a957

Please sign in to comment.