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 : PopUp Page with RG.Plugins.Popup

Text was truncated or one or more characters had no match in the target code page.". (SQL Server Import and Export Wizard)