What would be the idiomatic way to write a floating point division occuring inside a loop and handle the case of division by zero.
c = a/b; // b might be zero sometimes, than set c to an other value (d).
(In the moment I check the divisor being zero or not, with an if-than-else structure,
but I find it ugly and so I ask here.)