(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;