Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Java double-precision floating-point problem
Java double-precision floating-point problem
Sheshi = Hua Shi/3.0;

No problem,

Because the variable Huashi is an integer, and 3 is also an integer, it is rounded during operation/operation, so it gets 26, and then it is converted into double, so the output is 26.0.

Therefore, adding floating-point operation to the operation is the operation of division.