Can't you just overload the / operator for two integers to result in a real value?