RSS Forums RSS
Please support our VB.NET advertiser: Programming Forums
Views: 1330 | Replies: 3
Reply
Join Date: Sep 2005
Posts: 14
Reputation: kyakobi84 is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
kyakobi84 kyakobi84 is offline Offline
Newbie Poster

I need a help, plz (first post)

  #1  
Sep 24th, 2005
What is the code for converting from binary to decimal???????? :rolleyes:
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2005
Posts: 55
Reputation: NPH is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
NPH NPH is offline Offline
Junior Poster in Training

Re: I need a help, plz (first post)

  #2  
Sep 24th, 2005
Have you tried this code:

Dim strBinary As String = "11111111"
Dim intValue As Integer
Dim iPos As Integer
Dim iVal As Integer

For iPos = 0 To strBinary.Length - 1
       iVal = strBinary.Substring(strBinary.Length - iPos - 1, 1)
       intValue = intValue + iVal * 2 ^ iPos
Next
You can get more info at http://www.experts-exchange.com/Prog..._21259781.html

:mrgreen: For more help, www.NeedProgrammingHelp.com
Reply With Quote  
Join Date: Sep 2005
Posts: 14
Reputation: kyakobi84 is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
kyakobi84 kyakobi84 is offline Offline
Newbie Poster

Re: I need a help, plz (first post)

  #3  
Sep 24th, 2005
Thx for replying me, i will try this code now
Reply With Quote  
Join Date: Sep 2005
Posts: 14
Reputation: kyakobi84 is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
kyakobi84 kyakobi84 is offline Offline
Newbie Poster

Re: I need a help, plz (first post)

  #4  
Sep 24th, 2005
It worked , thaaanks alot :cheesy:
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

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

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 5:42 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC