Originally Posted by Ngoo Jia Xun
Where "cents" is the monetary value and x is an integer divisor. If x is a float, you do not need to cast it to a double. Otherwise, both those casts are necessary -- and, nb, do not do this:
Implying somebody (perhaps) got thru school without having this point brought home properly. Hopefully we saved some lives here today .
Originally Posted by nonoob
I always feel overzealous about this one, lol (thanks CornedBee & mike65535).