Programacion En Visual Basic 6.0

1204

Programacion En Visual Basic 6.0 Average ratng: 3,3/5 295reviews
Visual Basic 6.0 Meaning

Jul 20, 2015 - The following example uses the Mod operator to divide two numbers and return only the remainder. If either number is a floating-point number, the result is a floating-point number that represents the remainder. Debug.WriteLine(10 Mod 5) ' Output: 0 Debug.WriteLine(10 Mod 3) ' Output: 1 Debug. Visual Basic 6.0.

Mod Operator (Visual Basic) • • 2 minutes to read • Contributors • • • • • • In this article Divides two numbers and returns only the remainder. Syntax number1 Mod number2 Parts number1 Required.

Any numeric expression. Number2 Required.

Any numeric expression. Chemdoodle Activation Code Generator. Supported Types All numeric types. This includes the unsigned and floating-point types and Decimal. Result The result is the remainder after number1 is divided by number2. For example, the expression 14 Mod 4 evaluates to 2.

Remarks If either number1 or number2 is a floating-point value, the floating-point remainder of the division is returned. The data type of the result is the smallest data type that can hold all possible values that result from division with the data types of number1 and number2. If number1 or number2 evaluates to, it is treated as zero.

Related operators include the following: • The returns the integer quotient of a division. For example, the expression 14 4 evaluates to 3. • The returns the full quotient, including the remainder, as a floating-point number. For example, the expression 14 / 4 evaluates to 3.5.

This entry was posted on 12/4/2017.