Sie sind auf Seite 1von 2

VB Built-in Funcitons

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)

Rounds the number to


the given number of
Math.Round(number, places)
decimal places
Returns the square
root of the given
double number

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

Presents the user


with a dialog box
Get input into which they
InputBox(prompt, title)
can type their
input

Display
output

Displays a brief
message to the
user using a
dialog

Console.WriteLine(string)

Das könnte Ihnen auch gefallen