[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
Pete's QBASIC Site Discuss QBasic, Freebasic, QB64 and more 2016-03-01T16:08:40-05:00 http://www.petesqbsite.com/phpBB3/app.php/feed/topic/2974 2016-03-01T16:08:40-05:00 2016-03-01T16:08:40-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=23971#p23971 <![CDATA[Re: Binary To Decimal]]> Statistics: Posted by burger2227 — Tue Mar 01, 2016 4:08 pm


]]>
2016-03-01T10:46:08-05:00 2016-03-01T10:46:08-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=23970#p23970 <![CDATA[Re: Binary To Decimal]]>
I am not a programmer. I was just searching for a binary to decimal converter tool and landed here. Although here is not tool and I found one resource as well but just want to thank you all coders for making our lives easy by creating such useful tools.

Laura

Statistics: Posted by kidingwithlaura — Tue Mar 01, 2016 10:46 am


]]>
2009-06-06T18:20:42-05:00 2009-06-06T18:20:42-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=19288#p19288 <![CDATA[Binary To Decimal]]>

Statistics: Posted by MystikShadows — Sat Jun 06, 2009 6:20 pm


]]>
2009-06-06T22:14:37-05:00 2009-06-06T16:54:06-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=19287#p19287 <![CDATA[Binary To Decimal]]> Statistics: Posted by burger2227 — Sat Jun 06, 2009 4:54 pm


]]>
2009-06-06T00:35:55-05:00 2009-06-06T00:35:55-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=19285#p19285 <![CDATA[Binary To Decimal]]> Statistics: Posted by jimmy — Sat Jun 06, 2009 12:35 am


]]>
2009-06-05T23:11:29-05:00 2009-06-05T23:11:29-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=19282#p19282 <![CDATA[Binary To Decimal]]>
Ted

PS: Thanks Myst.

Statistics: Posted by burger2227 — Fri Jun 05, 2009 11:11 pm


]]>
2009-06-05T20:48:17-05:00 2009-06-05T20:48:17-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=19281#p19281 <![CDATA[Binary To Decimal]]> Statistics: Posted by jimmy — Fri Jun 05, 2009 8:48 pm


]]>
2009-06-05T20:03:59-05:00 2009-06-05T20:03:59-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=19280#p19280 <![CDATA[Binary To Decimal]]>

Statistics: Posted by MystikShadows — Fri Jun 05, 2009 8:03 pm


]]>
2009-06-05T20:47:37-05:00 2009-06-05T12:45:24-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=19279#p19279 <![CDATA[Binary To Decimal]]>

Code:

SUB Bin2DecCOLOR 14: LOCATE 2, 30: PRINT "Binary to Decimal"COLOR 10: LOCATE 5, 20: PRINT "Enter a binary number (1's or 0's):"DO: Bin$ = INKEY$ 'string number entry 1 or 0 with backspace  IF Bin$ = "1" OR Bin$ = "0" THEN Binary$ = Binary$ + Bin$  L = LEN(Binary$)  IF L > 0 AND Bin$ = CHR$(8) THEN Binary$ = MID$(Binary$, 1, L - 1)  COLOR 14: LOCATE 5, 57: PRINT Binary$; " "LOOP UNTIL L > 0 AND Bin$ = CHR$(13) 'enter quits FOR i = 0 TO L - 1     place = VAL(MID$(Binary$, L - i, 1))     dec = place * 2 ^ i     Decimal = Decimal + decNEXTCOLOR 11: LOCATE 10, 30: PRINT "Decimal number ="; DecimalEND SUB

Statistics: Posted by burger2227 — Fri Jun 05, 2009 12:45 pm


]]>
2009-06-05T11:42:22-05:00 2009-06-05T11:42:22-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=19278#p19278 <![CDATA[Binary To Decimal]]>
1. Set the output number to 0 and variable A to 1.
2. Get the right-most digit of input.
3. If it is 1, add A to the output.
4. Multiply A by 2 and shift right input one bit.
5. If input<>0, go to step 2.
6. Return output.

Statistics: Posted by Harry Potter — Fri Jun 05, 2009 11:42 am


]]>
2009-06-05T08:03:31-05:00 2009-06-05T08:03:31-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=19276#p19276 <![CDATA[Binary To Decimal]]> How do you convert 7bit binary to decimal in QBASIC?
Thanks in advance.

Statistics: Posted by jimmy — Fri Jun 05, 2009 8:03 am


]]>