O'Reilly logo

VB.NET Core Classes in a Nutshell by Ted Neward, Budi Kurniawan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

Math

Synopsis

This class provides shared helper functions for many trigonometric, logarithmic, and other mathematical operations, including methods for rounding numbers, getting absolute values, retrieving the largest whole divisor (Floor()), and determining the remainder (IEEERemainder()). The constants pi and e are provided as fields.

Public NotInheritable Class Math
                  ' Public Shared Fields
   Public const E As Double                                      // =2.71828182845905
   Public const PI As Double                                     // =3.14159265358979
                  ' Public Shared Methods
   Public Shared Function Abs(
        ByVal value As Decimal) As Decimal  
   Public Shared Function Abs(
        ByVal value As Double) As Double  
   Public Shared Function Abs( ByVal value As Short) As Short  
   Public Shared Function Abs(
        ByVal value As Integer) As Integer  
   Public Shared Function Abs( ByVal value As Long) As Long  
   Public Shared Function Abs( ByVal value As SByte) As SByte  
   Public Shared Function Abs(
        ByVal value As Single) As Single  
   Public Shared Function Acos( ByVal d As Double) As Double  
   Public Shared Function Asin( ByVal d As Double) As Double  
   Public Shared Function Atan( ByVal d As Double) As Double  
   Public Shared Function Atan2(ByVal y As Double, 
        ByVal x As Double) As Double  
   Public Shared Function Ceiling(
        ByVal a As Double) As Double  
   Public Shared Function Cos( ByVal d As Double) As Double  
   Public Shared Function Cosh(
        ByVal value As Double) As Double  
   Public Shared Function Exp( ByVal d As Double) As Double  
   Public Shared Function Floor( ByVal d As Double) As Double Public Shared Function ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required