VB.NET Exp Example – Code Sample Syntax
VB.NET Exp Example – Code Sample Syntax Purpose: – Illustrates using VB.NET Exp Code Example. View Other VB.NET Math Function Source Code Examples Purpose: takes a double data type number and returns a double value containing e (the base of natural logarithms) raised to the specified power. Syntax: Exp(doublenumber) Parameters Description doublenumber a number specifying a power. Result Data Type Description double The... [Read More...]
VB.NET Cos Example – Code Sample Syntax
VB.NET Cos Example – Code Sample Syntax Purpose: – Illustrates using VB.NET Cos Code Example. View Other VB.NET Math Function Source Code Examples Purpose: converts an angle measured in radians to a cosine. (you can convert the radians to degrees by multiplying them by Math.PI/180) Syntax: Cos(doublenumber) Parameters Description doublenumber double percision floating point number representing an angle... [Read More...]
VB.NET Atan Example – Code Sample Syntax
VB.NET Atan Example – Code Sample Syntax Purpose: – Illustrates using VB.NET Atan Code Example. View Other VB.NET Math Function Source Code Examples Purpose: converts a tangent to radians of an angle. The function takes a double data type number and returns a double value that repesents the radians of the angle for that tangent. (you can convert the radians to degrees by multiplying them... [Read More...]
VB.NET Abs Example – Code Sample Syntax
VB.NET Abs Example – Code Sample Syntax Purpose: – Illustrates using VB.NET Abs Code Example. View Other VB.NET Math Function Source Code Examples Purpose: Returns the absolute value for the data type that was passed in. Syntax: Abs(expression) Parameters Description expression 1. decimal – returns decimal number 2. double – returns double-percision floating point number 3. int16 –... [Read More...]
VB.NET CUShort Example – Code Sample Syntax
VB.NET CUShort Example – Code Sample Syntax Abstract: – Illustrates using VB.NET CUShort Code Example. View Other VB.NET Conversion Function Source Code Examples Purpose: Converts numbers into UShort data type – UShort data type is a 16-bit (2-byte) unsigned integer that can hold values from 0 to 65,535 (unsigned). Rounds fractions to whole numbers Syntax: CUShort(expression) Parameters Description expression 0... [Read More...]
VB.NET CULng Example – Code Sample Syntax
VB.NET CULng Example – Code Sample Syntax Abstract: – Illustrates using VB.NET CULng Code Example. View Other VB.NET Conversion Function Source Code Examples Purpose: Converts numbers into ULong data type – ULong data type is a 64-bit (8-byte) unsigned integer that can hold values from 0 to 18,446,744,073,709,551,615 (unsigned). Rounds fractions to whole numbers Syntax: CULng(expression) Parameters Description expression 0... [Read More...]
VB.NET CUInt Example – Code Sample Syntax
VB.NET CUInt Example – Code Sample Syntax Abstract: – Illustrates using VB.NET CUInt Code Example. View Other VB.NET Conversion Function Source Code Examples Purpose: Converts numbers into UInteger data type – UInteger data type is a 32-bit (4-byte) unsigned integer that can hold values from 0 to about 4 billion (4,294,967,295). Rounds fractions to whole numbers Syntax: CUInt(expression) Parameters Description expression 0... [Read More...]
VB.NET CStr Example – Code Sample Syntax
VB.NET CStr Example – Code Sample Syntax Abstract: – Illustrates using VB.NET CStr Code Example. View Other VB.NET Conversion Function Source Code Examples Purpose: Converts boolean, date, and numeric data types into String data type Syntax: CStr(expression) Parameters Description expression boolean, date, and numeric data types Result Data Type Description String 1. If boolean, returns string “True”... [Read More...]
VB.NET CSng Example – Code Sample Syntax
VB.NET CSng Example – Code Sample Syntax Abstract: – Illustrates using VB.NET CSng Code Example. View Other VB.NET Conversion Function Source Code Examples Purpose: Converts positive and negative numbers into Single data type Syntax: CSng(expression) Parameters Description expression -3.402823E+38 through -1.401298E-45 for negative values; 1.401298E-45 through 3.402823E+38 for positive values Result Data... [Read More...]
VB.NET CShort Example – Code Sample Syntax
VB.NET CShort Example – Code Sample Syntax Abstract: – Illustrates using VB.NET CShort Code Example. View Other VB.NET Conversion Function Source Code Examples Purpose: Converts positive and negative numbers into Short data type Syntax: CShort(expression) Parameters Description expression -32,768 through 32,767; fractional parts are rounded Result Data Type Description Short signed 16-bit (2-byte) integers Step... [Read More...]
VB.NET CSByte Example – Code Sample Syntax
VB.NET CSByte Example – Code Sample Syntax Abstract: – Illustrates using VB.NET CSByte Code Example. View Other VB.NET Conversion Function Source Code Examples Purpose: Converts positive and negative numbers into SByte data type Syntax: CSByte(expression) Parameters Description expression -128 through 127; fractional parts are rounded. Result Data Type Description SByte Signed Byte Step 1: Click Visual Basic... [Read More...]