- #36
- 2,076
- 140
For all those talking about 1 instead of 1.0, don't forget about type promotions as mentioned earlier.
mafagafo said:See my version. What you pointed out was "corrected" there.
Returning 1 instead of 1.0 is UGLY, not WRONG. (#22 explains why)
mafagafo said:Why the lecture fella?
You thought:
1) I was OP?
2) I write OS code with 300 characters per line?
"In any event ugly or not, you must return the data type indicated."
HE DOES RETURN A DOUBLE.