result is float and I could code this three ways:
- if (result < 0)
- if (result < 0.)
- if (result < 0.f)
As I understand it,
- 0is implicitly- int,
- 0.is implicitly- double
- and 0.fisfloat.
I'd prefer to use the first method since it is clear and simple but am I forcing a type conversion by using it?
 
     
    