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, ...

[95 byte] By [Keegan7] at [2007-12-17]
# 1
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.

cgraus at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 2
Thanks, That worked

Smile

Keegan7 at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...