Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 23rd, 2006, 10:28 AM   #1
Jakeyman_I_Am
Newbie
 
Join Date: Mar 2005
Posts: 14
Rep Power: 0 Jakeyman_I_Am is on a distinguished road
Talking Square Roots?

Hello guys/gals of the code, I'm new to this whole VB.Net world so I try to follow the KISS method, and was wondering: What is the best way to find the square root of a number in VB.Net? Every language seems to have a different way to find the square root of a number. (BTW: I'm thinking its sqrt () BUT I'm wondering if that has a accuracy issue..) Thanks allot!
__________________
The elder newb.

Last edited by Jakeyman_I_Am; Jan 23rd, 2006 at 10:39 AM.
Jakeyman_I_Am is offline   Reply With Quote
Old Jan 24th, 2006, 5:01 PM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
VB has the ^ operator, so I would presume VB .NET does too. This operator is the "to the power of" operator:
2 ^ 5 = 32
Remember, the nth root of x is the same as [i]x ^ (1 / n):
16 ^ (1 / 2) = 4
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:57 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC