Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Why can't the division divided by the power of 2 be used to represent the division divided by any constant k?
Why can't the division divided by the power of 2 be used to represent the division divided by any constant k?
Division is a basic operation and the rules are as follows. If one of the two operands is floating point, the result is floating point, and if both operands are integers, it is divisible. When an integer uses floating point, it needs to be converted into (float) or (double).

For example:

int a = 5;

int b = 2;

Then the value of a/b is 2 (divisible), and the value of a/b is 2.5 with (double), and a forced type conversion (double) is enough.