About 361,000 results
Open links in new tab
  1. Mod Operator - Visual Basic | Microsoft Learn

    The Mod operator in Visual Basic, the .NET Framework op_Modulus operator, and the underlying rem IL instruction all perform a remainder operation. The result of a Mod operation retains the sign of the dividend, number1 , and so it may be positive or negative.

  2. Can someone explain the 'mod' operator in VB.net in the simplest …

    Mod in VB.NET is the Modulo operation. It returns the remainder when one number is divided by another. For example, if you divided 4 by 2, your mod result would be 0 (no remainder). If you divided 5 by 2, your mod result would be 1. Explanation of the Modulo operation.

    Missing:

    • Symbol

    Must include:

  3. Mod operator | Microsoft Learn

    Jul 12, 2022 · The modulus, or remainder, operator divides number1 by number2 (rounding floating-point numbers to integers) and returns only the remainder as result. For example, in the following expression, A (result) equals 5.

    Missing:

    • Visual Basic

    Must include:

  4. VB.NET - Mod: Modulo Division Example - Dot Net Perls

    Aug 8, 2023 · With the Mod operator, you can compute the remainder of a division expression. Mod is equivalent to the modulo operator in C-like languages. With Mod we can determine whether a number is odd or even (its parity). Example. This example shows some Mod expressions with constant Integers.

  5. Operators in Visual Basic - ZetCode

    Oct 18, 2023 · The Mod operator is called the modulo operator. It finds the remainder of division of one number by another. 9 Mod 4, 9 modulo 4 is 1, because 4 goes into 9 twice with a remainder of 1. Modulo operator can be handy for example when we want to check for prime numbers. Finally, we mention exponentiation operator. Console.WriteLine(9 ^ 2) ' Prints 81

  6. VB.NET Mod Operator (Odd, Even Numbers) - The Developer Blog

    With the Mod operator, you can compute the remainder of a division expression. Mod is equivalent to the modulo operator in C-like languages. With Mod we can determine whether a number is odd or even (its parity).

  7. Viacheslav Eremin | Visual Basic Language Reference | Mod …

    The Mod operator divides number1 by number2 and returns only the remainder as result. For example, in the following expression, A ( result) equals 2. If number1 or number2 are floating-point values, then division is carried out and the floating-point remainder is returned.

  8. Mathematical Operations in VB2019 - Visual Basic Tutorial

    Mar 29, 2024 · In Visual Basic 2019, we can write code to instruct the computer to perform mathematical calculations that involve the use of various arithmetic operators. For example, you can write programs to calculate the area of a triangle, solve simultaneous equations , plot quadratic function graph , simulate simple harmonic motion and more.

  9. Visual Basic | Modulo: mod | Easy language reference - MKprog

    Using the modulo operator we can calculate the remainder after integer division. by using the modulo operator we can easily test the divisibility of integers, if the result is 0, then the number is divisible without a remainder.

    Missing:

    • Symbol

    Must include:

  10. Mod Operator - Microsoft Visual Basic Constants Documentation

    The modulus, or remainder, operator divides number1 by number2 (rounding floating-point numbers to integers) and returns only the remainder as result. For example, in the following expression, A (result) equals 5. A = 19 Mod 6.7

  11. Some results have been removed
Refresh