Professional Documents
Culture Documents
VB Built in Functions
VB Built in Functions
MATH
Name
Function
Abs
Returns magnitude of
Absolution
the decimal number
Math.Abs(decNumber)
value
(unsigned)
Pow
Power
Round Round
Sqrt
Square
root
Description
VB Call Syntax
Returns result of
number raised to the
given power
Math.Pow(decNumber,power)
Math.Sqrt(dblNumber)
CONVERSIONS
Name
Function
Description
Converts a
Convert to numeric value
ToString
String
to String
format
Parse
Convert
to
Numeric
Converts a
String value to
a specified
numeric value
VB Call Syntax
numvar.ToString(format)
numtype.Parse(stringVar)
Examples: int32.Parse(integerString)
double.Parse(decString)
GUI INPUT/OUTPUT
Name
Function
Description
VB Call Syntax
InputBox
MessageBox.Show
Display
output
Displays a brief
message to the
user using a
dialog
Console.WriteLine(string)