Skip to content

StefanSchroeder/Golang-Roman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoDoc Build Status Go Report Card License: MIT

Golang-Roman

A small Go-package for Roman Numbers

package main
import roman "github.com/StefanSchroeder/Golang-Roman"
import "fmt"
func main() {
	fmt.Printf("2+2=%v\n" , roman.Roman(2+2))
	// Prints 2+2=IV
	fmt.Printf("IX+IX=%v\n" , roman.Arabic("XVIII"))
	// Prints IX+IX=18
}

Added Travis.

Changelog:

1.0: Initial

2.0: Changed Roman() to return tupel (incl. error). Thanks to Jim Eagle for the contribution.

About

A small Go-package for Roman Numbers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages