Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sollace/romanizer
Minimal roman numeral converter.
https://github.com/sollace/romanizer
Last synced: about 1 month ago
JSON representation
Minimal roman numeral converter.
- Host: GitHub
- URL: https://github.com/sollace/romanizer
- Owner: Sollace
- Created: 2024-10-15T18:22:28.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2024-10-15T18:29:19.000Z (2 months ago)
- Last Synced: 2024-10-17T03:08:59.012Z (2 months ago)
- Language: Java
- Size: 68.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Romanizer
Provides a number converter for translating between regular integers and their equivalent extended roman numerals representation.
# How To Use
Converting to roman numerals:
```
String result = Romanizer.romanize(5); // --> "IV"
```Converting from roman numerals:
```
int number = Romanizer.deromanize("IV"); // --> 5
```# Adding to your project
You can download the jar and sources from the [releases tab](https://github.com/Sollace/Romanizer/releases)
Add it to a folder in your gradle project named "lib" and then specify it as a dependency like so:
```
repositories {
flatDir { dirs 'lib' }
}
...
dependencies {
compileOnly "com.sollace:Romanizer:Romanizer:1.0.2"
}
```