Skip to content

Commit

Permalink
Add examples
Browse files Browse the repository at this point in the history
  • Loading branch information
harryscholes committed Mar 6, 2019
1 parent 3b7780e commit a460d2e
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,37 @@
[![Coveralls](https://coveralls.io/repos/github/harryscholes/RomanNumerals.jl/badge.svg?branch=master)](https://coveralls.io/github/harryscholes/RomanNumerals.jl?branch=master)

Julia package for Roman numerals.

# Installation

```julia
] add https://github.com/harryscholes/RomanNumerals.jl
```

# Examples

```julia
julia> using RomanNumerals

julia> RomanNumeral(1)
I

julia> RomanNumeral(5)
V

julia> rn"MMXIX"
MMXIX

julia> I + I
II

julia> V - I
IV

julia> 3X - 2I
XXVIII

julia> M ÷ X
C

```

0 comments on commit a460d2e

Please sign in to comment.