C-Sharp ConvertToBoolean Example – Code Sample Syntax
C-Sharp ConvertToBoolean Example – Code Sample Syntax Purpose: – Illustrates using C-Sharp ConvertToBoolean Code Example. View Other C-Sharp Source Code Examples Purpose: Converts char, string, or numeric expression to boolean data type Syntax: Convert.ToBoolean(expression) Parameters Description expression char, string, or numberic expression Result Data Type Description Boolean is false if input converts to 0;... [Read More...]
C-Sharp Truncate Example – Code Sample Syntax
C-Sharp Truncate Example – Code Sample Syntax Purpose: – Illustrates using C-Sharp Truncate Code Example. View Other C-Sharp Math Function Source Code Examples Purpose: takes a decimal or double as input parameter1 and returns the number truncated without the fractional decimals. Syntax: 1. Truncate(decimal) 2. Truncate(double) Parameters Description decimal Any valid System.Decimal data type... [Read More...]
C-Sharp Tanh Example – Code Sample Syntax
C-Sharp Tanh Example – Code Sample Syntax Purpose: – Illustrates using C-Sharp Tanh Code Example. View Other C-Sharp Math Function Source Code Examples Purpose: converts an angle measured in radians to a hyperbolic tangent. (you can convert the radians to degrees by multiplying them by Math.PI/180) Syntax: Tanh(doublenumber) Parameters Description doublenumber double percision floating point number... [Read More...]
C-Sharp Tan Example – Code Sample Syntax
C-Sharp Tan Example – Code Sample Syntax Purpose: – Illustrates using C-Sharp Tan Code Example. View Other C-Sharp Math Function Source Code Examples Purpose: converts an angle measured in radians to a tangent. (you can convert the radians to degrees by multiplying them by Math.PI/180) Syntax: Tan(doublenumber) Parameters Description doublenumber double percision floating point number representing... [Read More...]
C-Sharp Sqrt Example – Code Sample Syntax
C-Sharp Sqrt Example – Code Sample Syntax Purpose: – Illustrates using C-Sharp Sqrt Code Example. View Other C-Sharp Math Function Source Code Examples Purpose: takes number as a double data type and returns the square root as a double data type. Syntax: Sqrt(doublenumber) Parameters Description doublenumber double percision floating point number that you want to find the square root Result Data... [Read More...]
C-Sharp Sinh Example – Code Sample Syntax
C-Sharp Sinh Example – Code Sample Syntax Purpose: – Illustrates using C-Sharp Sinh Code Example. View Other C-Sharp Math Function Source Code Examples Purpose: takes an angle specified in radians (to convert degrees to radians multiply degrees by 180/Math.PI) and returns the hyperbolic sine for the angle as a double data type. Syntax: Sinh(doublenumber) Parameters Description doublenumber double percision... [Read More...]
C-Sharp Sin Example – Code Sample Syntax
C-Sharp Sin Example – Code Sample Syntax Purpose: – Illustrates using C-Sharp Sin Code Example. View Other C-Sharp Math Function Source Code Examples Purpose: converts an angle measured in radians to a Sin. (you can convert the radians to degrees by multiplying them by Math.PI/180) Syntax: Sin(doublenumber) Parameters Description doublenumber double percision floating point number representing an angle... [Read More...]
C-Sharp Sign Example – Code Sample Syntax
C-Sharp Sign Example – Code Sample Syntax Purpose: – Illustrates using C-Sharp Sign Code Example. View Other C-Sharp Math Function Source Code Examples Purpose: Returns an integer indicating the sign of the input parameter. The result is -1 if the input parameter is less than one; 0 if the input is zero; and 1 if the input is > 0 Syntax: 1. Sign(decimal) 2. Sign(double) 3. Sign(int16) ... [Read More...]
C-Sharp Round Example – Code Sample Syntax
C-Sharp Round Example – Code Sample Syntax Purpose: – Illustrates using C-Sharp Round Code Example. View Other C-Sharp Math Function Source Code Examples Purpose: takes a decimal or double as input parameter1 and returns the number rounded to the specified number of fractional decimals. If parameter 2 is not used, result is rounded to whole number. Parameter3 specifies rounding mode Syntax:... [Read More...]
C-Sharp Pow Example – Code Sample Syntax
C-Sharp Pow Example – Code Sample Syntax Purpose: – Illustrates using C-Sharp Pow Code Example. View Other C-Sharp Math Function Source Code Examples Purpose: takes two double data type numbers and raises the first number to the power of the second. The result is returned as a double data type. Syntax: Pow(doublenumberbase, doublenumberpower) Parameters Description doublenumberbase Any valid System.Double... [Read More...]
C-Sharp Min Example – Code Sample Syntax
C-Sharp Min Example – Code Sample Syntax Purpose: – Illustrates using C-Sharp Min Code Example. View Other C-Sharp Math Function Source Code Examples Purpose: Returns the Min value of the two parameters that were passed in. Syntax: Min(byte,byte) Min(decimal, decimal) Min(double, double) Min(int16, int16) Min(int32, int32) Min(int64, int64) Min(sbyte, sbyte) Min(single,... [Read More...]