Misunderstood
Unregistered
Thats too big of an indent
i HATE when people don't nest their code...
isn't it faster just to do
i = 5+3
instead of
i = Add(5,3)
it's less to type... but congrats for submitting something new :wink:
oh no i figured it was... :roll:
I dare somebody to do square root without the "Sqrt()" functon...
Misunderstood
Unregistered
Code:
Public Function SquareRoot(ByVal a As Double) as Double
SquareRoot=a^(1/2)
End Function
Rofl, how about percentage? :p
Misunderstood
Unregistered
Right, raising to the .5 is generally much slower in most programing languages than the buit in sqrt function.
Compiled, 5000 loops per each result. :wink:
Posts: 2,605
Threads: 412
Joined: Nov 2021
Reputation:
0
Why, does functions run faster in VB.net?
Posts: 2,605
Threads: 412
Joined: Nov 2021
Reputation:
0
I think he means that its not good in VB. But in VB.net.. maybe I missunderstood it..
Misunderstood
Unregistered
William Wrote:I think he means that its not good in VB. But in VB.net.. maybe I missunderstood it..
I think you misunderstood
Posts: 2,605
Threads: 412
Joined: Nov 2021
Reputation:
0
Yeah, guessed so. You ment that it doesn't support Math.Tan etc?