Search Results for

    Show / Hide Table of Contents

    Mathematical

    Abs

    Function Parameters Return value
    Abs sbyte value sbyte
    Abs short value short
    Abs int value int
    Abs long value long
    Abs float value float
    Abs double value double
    Abs decimal value decimal

    Returns the absolute value.

    Example:

    Abs(-2.2) = 2.2
    

    Acos

    Function Parameters Return value
    Acos double d double

    Returns the angle (in radians) whose cosine is d. d must be in range between -1 and 1.

    Multiply the return value by 180 / Math.PI to convert from radians to degrees.

    Example:

    Acos(0) * 180 / Math.PI = 90
    

    Asin

    Function Parameters Return value
    Asin double d double

    Returns the angle (in radians) whose sine is d. d must be in range between -1 and 1.

    Multiply the return value by 180 / Math.PI to convert from radians to degrees.

    Example:

    Asin(0) = 0
    

    Atan

    Function Parameters Return value
    Atan double d double

    Returns the angle (in radians) whose tangent is d.

    Multiply the return value by 180 / Math.PI to convert from radians to degrees.

    Example:

    Atan(1) * 180 / Math.PI = 45
    

    Ceiling

    Function Parameters Return value
    Ceiling double d double
    Ceiling decimal d decimal

    Returns the smallest integer greater than or equal to d.

    Example:

    Ceiling(1.7) = 2
    

    Cos

    Function Parameters Return value
    Cos double d double

    Returns the cosine of the specified angle d. The angle must be in radians.

    Multiply by Math.PI / 180 to convert degrees to radians.

    Example:

    Cos(90 * Math.PI / 180) = 0
    

    Exp

    Function Parameters Return value
    Exp double d double

    Returns e (2.71828), raised to the specified power d.

    Example:

    Exp(1) = 2.71828
    

    Floor

    Function Parameters Return value
    Floor double d double
    Floor decimal d decimal

    Returns the largest integer less than or equal to d.

    Example:

    Floor(1.7) = 1
    

    Log

    Function Parameters Return value
    Log double d double

    Returns the logarithm of a specified number d.

    Example:

    Log(2.71828) = 1
    

    Maximum

    Function Parameters Return value
    Maximum int val1, int val2 int
    Maximum long val1, long val2 long
    Maximum float val1, float val2 float
    Maximum double val1, double val2 double
    Maximum decimal val1, decimal val2 decimal

    Returns the larger of val1, val2.

    Example:

    Maximum(1,2) = 2
    

    Minimum

    Function Parameters Return value
    Minimum int val1, int val2 int
    Minimum long val1, long val2 long
    Minimum float val1, float val2 float
    Minimum double val1, double val2 double
    Minimum decimal val1, decimal val2 decimal

    Returns the smaller of val1, val2.

    Example:

    Minimum(1,2) = 1
    

    Round

    Function Parameters Return value
    Round double d double
    Round decimal d decimal

    Rounds d to the nearest integer.

    Example:

    Round(1.47) = 1
    
    Function Parameters Return value
    Round double d, int digits double
    Round decimal d, int digits decimal

    Rounds d to a precision specified in the digits parameter.

    Example:

    Round(1.478, 2) = 1.48
    

    Sin

    Function Parameters Return value
    Sin double d double

    Returns the sine of the specified angle d. The angle must be in radians.

    Multiply by Math.PI / 180 to convert degrees to radians.

    Example:

    Sin(90 * Math.PI / 180) = 1
    

    Sqrt

    Function Parameters Return value
    Sqrt double d double

    Returns the square root of d.

    Example:

    Sqrt(4) = 2
    

    Tan

    Function Parameters Return value
    Tan double d double

    Returns the tangent of the specified angle d. The angle must be in radians.

    Multiply by Math.PI / 180 to convert degrees to radians.

    Example:

    Tan(45 * Math.PI / 180) = 1
    

    Truncate

    Function Parameters Return value
    Truncate double d double
    Truncate decimal d decimal

    Calculates the integral part of d.

    Example:

    Truncate(1.7) = 1
    
    Back to top © 1998-2025 Copyright Fast Reports Inc.