vb.net coding help with sub procedures
Started by
diamond5
, Oct 05 2006 01:22 PM
#1
Posted 05 October 2006 - 01:22 PM
#2
Posted 06 October 2006 - 01:33 AM
Math Functions
Function | Description
Abs | Returns the absolute value of a specified number
Atn | Returns the arctangent of a specified number
Cos | Returns the cosine of a specified number (angle)
Exp | Returns e raised to a power
Hex | Returns the hexadecimal value of a specified number
Int | Returns the integer part of a specified number
Fix | Returns the integer part of a specified number
Log | Returns the natural logarithm of a specified number
Oct | Returns the octal value of a specified number
Rnd | Returns a random number less than 1 but greater or equal to 0
Sgn | Returns an integer that indicates the sign of a specified number
Sin | Returns the sine of a specified number (angle)
Sqr | Returns the square root of a specified number
Tan | Returns the tangent of a specified number (angle)
--------------------
Operator | English | Example | Result
+ | Add | 8+7 | 15
- | Subtract | 11-10 | 1
* | Multiply | 7*8 | 56
/ | Divide | 8/2 | 4
^ | Exponent | 2^4 | 16
Mod | Modulus | 15 Mod 10 | 5
Function | Description
Abs | Returns the absolute value of a specified number
Atn | Returns the arctangent of a specified number
Cos | Returns the cosine of a specified number (angle)
Exp | Returns e raised to a power
Hex | Returns the hexadecimal value of a specified number
Int | Returns the integer part of a specified number
Fix | Returns the integer part of a specified number
Log | Returns the natural logarithm of a specified number
Oct | Returns the octal value of a specified number
Rnd | Returns a random number less than 1 but greater or equal to 0
Sgn | Returns an integer that indicates the sign of a specified number
Sin | Returns the sine of a specified number (angle)
Sqr | Returns the square root of a specified number
Tan | Returns the tangent of a specified number (angle)
--------------------
Operator | English | Example | Result
+ | Add | 8+7 | 15
- | Subtract | 11-10 | 1
* | Multiply | 7*8 | 56
/ | Divide | 8/2 | 4
^ | Exponent | 2^4 | 16
Mod | Modulus | 15 Mod 10 | 5
Edited by IO-error, 06 October 2006 - 01:34 AM.
#3
Posted 06 October 2006 - 12:52 PM
I am not sure how to do the code,for this type of program.
#4
Posted 09 October 2006 - 12:47 AM
Then your not really writing a program, your just waiting till others script it for you...
I have no idea how it's written either, but if I have to do a calculation, first that comes is the number, then the calculation symbols, then another number to calculate with.
ex.: 1+1
+ | Add | 8+7
- | Subtract | 11-10
* | Multiply | 7*8
/ | Divide | 8/2
^ | Exponent | 2^4
Mod | Modulus | 15 Mod 10
Get it now?
I have no idea how it's written either, but if I have to do a calculation, first that comes is the number, then the calculation symbols, then another number to calculate with.
ex.: 1+1
+ | Add | 8+7
- | Subtract | 11-10
* | Multiply | 7*8
/ | Divide | 8/2
^ | Exponent | 2^4
Mod | Modulus | 15 Mod 10
Get it now?
#5
Posted 11 October 2006 - 02:18 PM
I have no idea what's the second thing you are asking for, but maybe you can explain that later. With the sub procedure, just create one and allow it to accept two variables, something like, Var1 and Var2. Call the procedure something like... er... Exponent?
Add a line: Exponent = Var1^Var2
And voila, call the procedure and you should get the answer. Sorry, is this answering your problem?
Add a line: Exponent = Var1^Var2
And voila, call the procedure and you should get the answer. Sorry, is this answering your problem?
Similar Topics
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users