Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - In vb, \ stands for integer division. 1\ 2 = 0,3 \ 2 =1,but! 1.5\2 Why = 1, shouldn't it be 0? ! ! !
In vb, \ stands for integer division. 1\ 2 = 0,3 \ 2 =1,but! 1.5\2 Why = 1, shouldn't it be 0? ! ! !
\ stands for "integer division" in VB instead of "integer division" in mathematics. Before the division operation, the two operands will be converted into bytes, integers or long forms by rounding (if it happens to be .5), and the quotient value of the result will be taken.

1.5 \ 2, the first round 1.5 is 2, and the quotient divided by 2 is 1. So 1.5 \ 2 = 1.