convert room to integer