Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - % of the remaining surgical objects can only be plastic surgery. 10.7%3?
% of the remaining surgical objects can only be plastic surgery. 10.7%3?
In the case of a small number of compilers and special compilation configuration, 10.7%3 will be forcibly converted into integers and then the remainder will be calculated, which is equivalent to:

(Integer) 10.7%3

Get an integer result.

Most compilers report errors directly, and% cannot operate on floating-point numbers.

If you want to get a decimal result, you can only make a function or sentence fragment by yourself:

Double? a= 10.7,b = 3;

while(a & gt; =b)

Answer? -=? b;