Jeanne Boyarsky wrote:You can still try to divide an int by zero though. Doesn't that still give NaN?
Nope, only floats. And in particular 0 / 0.0; changing first operand to positive > 0 gives infinity, to negative minus infinity. Maybe there are more cases for NaN though, don't know.
Ron McLeod wrote:Assuming that they are not selling tickets for for less an a whole seat, should the result of any calculation ever be a floating point value?
Since it is MD fora here, I'm free to assume what I want
You might cannot buy half of a seat, but you can calculate how much it costs