How to Check if Integer Divisable by 100


How could I check if an integer is divisable by 100

For example 100, 200, 300, 400, ...


Answer this question

How to Check if Integer Divisable by 100

  • VS___Programmer

    Thanks, That worked

    Smile

  • trevorgmitchell

    if (x Mod 100 = 0)

    I *think*.  Certainly in C# it's if (x % 100 ==0 ), and a quick google leads me to believe that Mod replaces to mod operator (%) in VB.NET.

    Mod returns the remainder when the left value is divided by the right value, so if it's 0, then the number divided by 100 exactly.

  • How to Check if Integer Divisable by 100