Mathematical Functions in VB.NET
VB.NET offers some very simple and useful mathematical functions for your programming needs; They include:
"+" Add
"-" Subtract
"*" Multiply
"/" Divide
"\" Integer Division
"^" Exponent
The code example below illustrates how these mathematical functions are performed in VB.NET.
Dim i, j, k as Integer
i = 2 * 3
j = 3 / 9
k = 2 ^ 3
Msgbox(i) '--- return a value of 6
Msgbox(j) '--- return a value of 3
Msgbox(k) '--- return a value of 8
Now you should have understood the simple mathematical functions in VB.NET.
See also Advanced Mathematical Functions
VB.NET : Mathematical Functions
Posted by Fluffy | 6:13 AM | Simple Mathematical Functions, VB.NET | 0 comments »
Subscribe to:
Post Comments (Atom)


0 comments
Post a Comment