completes romToDec function