Well, these are warnings rather than errors, but it is still good practice to eliminate them if you can.
The cause is assigning a value of type
double
to a variable of type
float
. The solution is to make the types match.
That gives you two choices. (a) make everything of type float, like this:
1 2
|
const float PrixBroche = 0.03f;
const float PrixEncoller = 0.60f;
|
or (b) make everything of type double, like this:
1 2
|
const double PrixBroche = 0.03;
const double PrixEncoller = 0.60;
|
Personally, I'd go with the second option and use
double
throughout. There are very few reasons to prefer the use of
float
rather than
double
. I'd recommend using
double
as a matter of routine, and only use
float
when there is a compelling reason to do so (which may be extremely rare).