Math Class

Dim i, y As Integer
        i = 5
        y = 150

        'Console.Write(Math.Max(i, y)) ' This will Return 150
        'Console.Write(Math.Min(i, y)) ' This will Return 5
        'Console.Write(Math.Sign(-5)) '-1 value is less than zero.  0:value is equal to zero. 1:value is greater than zero.

Comments

Popular posts from this blog

Shared / Static Class in vb.net/C#

Xamarin Forms - Change Colour of Navigation Bar (Page Title For Master-Detail Template)

Xamarin Forms : PopUp Page with RG.Plugins.Popup