Abs Function | System.Math |
Math.Abs(value) |
|
value required; any valid numeric expression
A number whose absolute value is to be returned
The absolute value of value. The data type is the same as that of the argument passed to the function
Returns the absolute value of value. If value is an uninitialized variable, the return value is 0.
Acos Function | System.Math |
Math.Acos(d) |
|
d required; Double or any valid numeric expression
A cosine, which is a number greater than or equal to -1 and less than or equal to 1
A Double between 0 and pi that is the arccosine of d in radians
Returns the arccosine of d in radians.
Asin Function | System.Math |
Math.Asin(d) |
|
d required; Double or any valid numeric expression
A number representing a sine, which can range from -1 to 1
A Double between -pi/2 and pi/2 that is the arcsine of d in radians
Returns the arcsine of d, in radians
Atan Function | System.Math |
Math.Atan(d) |
|
d required; Double or any valid numeric expression
A number representing a tangent
A Double that is the arctangent in radians of d, in the range -pi/2 to pi/2
Takes the ratio of two sides of a right triangle (d) and returns the corresponding angle in radians. The ratio is the length of the side opposite the angle divided by the length of the side adjacent to the angle.
Atan2 Function | System.Math |
Math.Atan2(y, x) |
|
x required; Double
The x coordinate of a point
y required; Double
The y coordinate of a point
A Double that is the arctangent of the ratio x/y, in radians
Returns the angle in the Cartesian plane formed by the x-axis and a vector starting from the origin (0,0) and terminating at the point (x, y). More specifically, the return value q satisfies the following:
For (x, y) in quadrant 1, 0 < q < pi/2
For (x, y) in quadrant 2, pi /2 < q < pi
For (x, y) in quadrant 3, -pi < q < -pi /2
For (x, y) in quadrant 4, -pi /2 < q < 0
Ceiling Function | System.Math |
Math.Ceiling(a) |
|
a required; Double
Any valid numeric expression
A Double containing the smallest integer greater than or equal to the argument a
Returns the smallest integer greater than or equal to the argument a.
Cos Function | System.Math |
Math.Cos(d) |
|
d required; Double or numeric expression
An angle in radians
A Double data type denoting the cosine of an angle
Takes an angle specified in radians and returns a ratio representing the length of the side adjacent to the angle divided by the length of the hypotenuse.
Cosh Function | System.Math |
Math.Cosh(value) |
|
value required; Double or numeric expression
An angle in radians
A Double denoting the hyperbolic cosine of the angle
Returns the hyperbolic cosine of an angle.
E Field | System.Math |
Math.E |
|
This field returns the approximate value of the irrational number e, which is the base of the natural logarithm and the base of the natural exponential function. In particular:
Math.E = 2.71828182845905
Exp Function | System.Math |
Math.Exp(d) |
|
d required; Numeric
Any valid numeric expression
Double
Returns a Double representing the natural number e raised to the power d. Note that the irrational number e is approximately 2.7182818.
Fix Function |
|
|
|
See Fix Function entry under Section 1.14.
Floor Function | System.Math |
Math.Floor(d) d required; Double |
|
A Double containing the largest integer less than or equal to the argument d
Returns the largest integer less than or equal to the argument d.
IEEERemainder Function | System.Math |
Math.IEEERemainder(x, y) x and y required; Double |
|
Returns the remainder after dividing x by y
Returns a Double whose value is the remainder after dividing x by y.
Int Function |
|
|
|
See Int Function entry under Section 1.14.
Log Function | System.Math |
Math.Log(d) Syntax 1. Math.Log(a, newbase) Syntax 2. |
|
d or a required; Double
A numeric expression greater than zero
newbase required; Double
The base of the logarithm
Double
Returns the natural (base e) logarithm of a given number (the first syntax) or the logarithm of a given number in a specified base (the second syntax).
Log10 Function | System.Math |
Math.Log10(d) |
|
d required; Double
A numeric expression greater than zero
Double
Returns the common (base-10) logarithm of a given number.
Max Function | System.Math |
Math.Max(val1, val2) |
|
val1, val2 required; any
A numeric data type or expression
Returns the maximum of val1 and val2, in the wider datatype of the two numbers
Returns the maximum of val1 and val2.
Min Function | System.Math |
Math.Min(val1, val2) |
|
val1, val2 required; any numeric
A numeric data type or expression
Returns the minimum of val1 and val2 in the wider data type of the two numbers
Returns the minimum of two numbers.
Mod Operator |
|
result = number1 Mod number2 |
|
number1, number2 required; any
A numeric expression
Returns the modulus
Returns the modulus, that is, the remainder when number1 is divided by number2. This return value is a non-negative integral data type.
Partition Statement |
|
|
|
See Partition Function entry under Section 1.23.
Pi Field | System.Math |
Math.PI |
|
A Double containing the approximate value of the irrational number pi
This field returns the approximate value of the irrational number pi. In particular:
Math.PI = 3.14159265358979
Pow Function | System.Math |
result = Math.Pow(x, y) x, y required; Double |
|
A Double that is x (the base) raised to the power y (the exponent)
This is a generalized exponential function; it returns the result of a number raised to a specified power.
Randomize Procedure | Microsoft.VisualBasic.VBMath |
Randomize([number]) |
|
number optional; Object or any valid numeric expression
A number used to initialize the random-number generator
Initializes the random-number generator.
Rnd Function | Microsoft.VisualBasic.VBMath |
Rnd[(number)] |
|
number optional; Single
Any valid numeric expression that serves as a seed value
A Single data type random number
Returns a random number.
Round Function | System.Math |
Math.Round( value[,digits]) |
|
value required; Numeric expression
Any numeric expression
digits optional; Integer
The number of places to include after the decimal point
The same data type as value
Rounds a given number to a specified number of decimal places.
Sign Function | System.Math |
Sign(value) |
|
value required; any numeric type, including Decimal
A numeric expression
Integer
Determines the sign of a number.
Sin Function | System.Math |
Sin(a) |
|
a required; Numeric
An angle expressed in radians
A Double containing the sine of an angle
Returns the ratio of two sides of a right triangle in the range -1 to 1.
Sinh Function | System.Math |
Math.Sinh(value) |
|
value required; Double or numeric expression
An angle in radians
A Double denoting the hyperbolic sine of the angle
Returns the hyperbolic sine of an angle.
Sqrt Function | System.Math |
Sqr(d) |
|
d required; Double
Any numeric expression greater than or equal to 0
A Double containing the square root of d
Calculates the square root of a given number.
Tan Function | System.Math |
Tan(a) |
|
a required; Double
An angle in radians
A Double containing the tangent of an angle
Returns the ratio of two sides of a right angle triangle.
Tanh Function | System.Math |
Math.Tanh(number) |
|
number required; Double or numeric expression
An angle in radians
A Double denoting the hyperbolic tangent of the angle
Returns the hyperbolic tangent of an angle.