code: private static String binaryToRoman(int binary)
      {
          if (binary <= 0 || binary >= 4000) 
              throw new NumberFormatException("Value outside roman numeral range.");
          String roman = ""; // Roman notation will be accumualated here.
  
          // Loop from biggest value to smallest, successively subtracting,
          // from the binary value while adding to the roman representation.
          for (int i = 0; i < RCODE.length; i++)
          {
              while (binary >= BVAL[i])
              {
                  binary -= BVAL[i];
                  roman += RCODE[i];
              }
          }
          return roman;
      }
docs: Conversion int to Roman numbers
  from http://www.roseindia.net/java/java-tips/45examples/misc/roman/roman.shtml
  
  @param binary the int to be converted
  @return the roman number string