T
Teis Draiby
double a = 99 * (double)1/50;
Instead of casting one of the operands, couldn't I just add a decimal point.
Can I then be sure that the operand is always interpreted as a double rather
than, e.g., a float?
Like this:
double a = 99 * 1.0 / 50;
a = 1.98;
a=1.98
Instead of casting one of the operands, couldn't I just add a decimal point.
Can I then be sure that the operand is always interpreted as a double rather
than, e.g., a float?
Like this:
double a = 99 * 1.0 / 50;
a = 1.98;