Simplified ratio arithmetic, improved show instance for numbers.