Answer to Question #32723 in Visual Basic for Noor sihra
How '/' operator is different from '\'?
VB.NET offers two division operators: / and .The forward slash or right-facing division operator (/) returns a floating-point answer. In other words, this operator allows for a fractional answer; there is no remainder. Thus, if you use this operator to divide 12 by 5 (12/5), the answer is 2.4. This answer is returned as a Double.
The backslash or left-facing division operator () performs integer division; that is, it returns an integer value and discards any remainder. Thus, if you use the integer division operator to divide 12 by 5 (125), the return value is truncated to the integer 2, with VB.NET discarding the remainder of 4. However, no cast is needed (even with Option Strict On) because you've explicitly asked for the integer value.
Going back to school after summer vacation is not the easiest thing to do. In fact, it takes more mental…
APPROVED BY CLIENTS
So far, I am satisfied. Unfortunately, I failed a quiz, but appreciate the fact that some of my money was refunded. I'm glad that I made an A on my Assignment #8. Wish I could keep the same tutor for the remainder of this course.