Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert Int to Roman #10

Closed
wandersonwhcr opened this issue Apr 9, 2017 · 1 comment
Closed

Convert Int to Roman #10

wandersonwhcr opened this issue Apr 9, 2017 · 1 comment

Comments

@wandersonwhcr
Copy link
Owner

Now we must convert Integer to Roman number. Create a filter class with a method that receives a int and converts it to string representing the roman number.

@wandersonwhcr
Copy link
Owner Author

The conversion is simple: the method must find the biggest token value that fits in the current integer number; after that, subtract found value from current integer and saves it into current integer. Do this loop until zero.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant