<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/">
	<channel>
		<title>Binary code</title>
		<link>https://www.lotterypost.com/thread/215121</link>
		<atom:link href="https://www.lotterypost.com/rss/topic/215121" rel="self" type="application/rss+xml" />
		<description>Lottery Post Forum Topic: Binary code</description>
		<dc:language>en-us</dc:language>
		<generator>Lottery Post RSS Generator</generator>
		<item>
			<title>Reply #15</title>
			<link>https://www.lotterypost.com/thread/215121/1700824</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/215121/1700824</guid>
			<pubDate>Tue, 06 Jul 2010 20:36:43 GMT</pubDate>
			<dc:creator>frenchie</dc:creator>
			<description><![CDATA[<p>Sorry correction the maximun number is not : 34 359 738 368<br /><br />but : 34 359 738 367<br /><br />I was one digit off !!!.</p>]]></description>
			<category>frenchie</category>
		</item>
		<item>
			<title>Reply #14</title>
			<link>https://www.lotterypost.com/thread/215121/1697231</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/215121/1697231</guid>
			<pubDate>Fri, 02 Jul 2010 20:30:01 GMT</pubDate>
			<dc:creator>frenchie</dc:creator>
			<description><![CDATA[<p>Hi,<br /><br />If someone is interested in binary formula here is what I find 3 diferentes one.<br /><br />Put your number in cell A1 and the formula in B1.<br /><br />1 . for A Binary of 12 digits the formula is :<br /><br />=DEC2BIN((MOD(A1,4096)/512),3) DEC2BIN(MOD(A1,512),9)<br /><br />The maximum number you can go with this one is : 4 095.<br /><br />2 . for A Binary of 18 digits the formula is : =CONCATENATE(DEC2BIN(INT(A1/512),9),DEC2BIN(MOD(A1,512),9))<br /><br />The maximum number you can go with this one is : 262 143.<br /><br />3 . f... &#x5b;&#xa0;<a href="https://www.lotterypost.com/thread/215121/1697231">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>frenchie</category>
		</item>
		<item>
			<title>Reply #13</title>
			<link>https://www.lotterypost.com/thread/215121/1693862</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/215121/1693862</guid>
			<pubDate>Tue, 29 Jun 2010 18:23:45 GMT</pubDate>
			<dc:creator>frenchie</dc:creator>
			<description><![CDATA[<p>Thanks RL for your answer but I&#x27;m not interrested in learning macro, it is too complicated for me and I don&#x27;t need them much for my lottery study that&#x27;s why I ask you guys help, I work more with formula.<br /><br />Thank you again RL. Frenchie.</p>]]></description>
			<category>frenchie</category>
		</item>
		<item>
			<title>Reply #12</title>
			<link>https://www.lotterypost.com/thread/215121/1682637</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/215121/1682637</guid>
			<pubDate>Thu, 17 Jun 2010 20:09:38 GMT</pubDate>
			<dc:creator>RL-RANDOMLOGIC</dc:creator>
			<description><![CDATA[<p>frenchie<br /><br />I am a little confused. How and with what, were you using the code above to get the problems listed<br /><br />in this post. Macro is not hard to learn and you can find help online just google macro tutorial and<br /><br />you should find all the help you need. I don&#x27;t have time to do this, sorry. You mentioned looking for<br /><br />patterns in binary, I have done much in this area and have found little that could help with the lottery<br /><br />but don&#x27;t let this detain you.<br /><br />You first may need to learn some v... &#x5b;&#xa0;<a href="https://www.lotterypost.com/thread/215121/1682637">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>RL-RANDOMLOGIC</category>
		</item>
		<item>
			<title>Reply #11</title>
			<link>https://www.lotterypost.com/thread/215121/1682527</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/215121/1682527</guid>
			<pubDate>Thu, 17 Jun 2010 16:11:44 GMT</pubDate>
			<dc:creator>frenchie</dc:creator>
			<description><![CDATA[<p>Hi RANDOMLOG,<br /><br />Thank you for the code, but could you help me step by step how to make it work on the excel file, I don&#x27;t know nothing about macro, that would be a good lesson for me.<br /><br />Thank you.</p>]]></description>
			<category>frenchie</category>
		</item>
		<item>
			<title>Reply #10</title>
			<link>https://www.lotterypost.com/thread/215121/1682304</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/215121/1682304</guid>
			<pubDate>Thu, 17 Jun 2010 09:23:31 GMT</pubDate>
			<dc:creator>RL-RANDOMLOGIC</dc:creator>
			<description><![CDATA[<p>frenchie<br /><br />copy and paste this code and see if it works, may need to remove the End IF<br /><br />I = 7 so it will convert any number = 255 can be changed if needed<br /><br />prints all 8 bits format = 01000101<br /><br />DECLARE FUNCTION DecBin$ (V AS ANY)<br /><br />FUNCTION DecBin$ (V AS Variant)<br /><br />DIM R$, L%, I%<br /><br />I = 7<br /><br />R =<br /><br />IF IsNumeric(V) THEN<br /><br />L = VAL(V)<br /><br />WHILE I = 0<br /><br />IF 2 ^ I = L THEN R = R 1 ELSE R = R 0<br /><br />IF 2 ^ I = L THEN L = L - 2 ^ I<br /><br />I = I - 1<br /><br />WEND<br /><br />End IF<br /><br />DecBin = R<br /><br />END FUN... &#x5b;&#xa0;<a href="https://www.lotterypost.com/thread/215121/1682304">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>RL-RANDOMLOGIC</category>
		</item>
		<item>
			<title>Reply #9</title>
			<link>https://www.lotterypost.com/thread/215121/1681320</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/215121/1681320</guid>
			<pubDate>Wed, 16 Jun 2010 12:41:54 GMT</pubDate>
			<dc:creator>themagician</dc:creator>
			<description><![CDATA[<p>Ah, looking for patterns in binary code, interesting,... that reminds me of the latest discoveries in the England crop fields circles. You know, those circles that appear avery now and then on the fields and nowone knows how they&#x27;ve been done!<br /><br />One of those circles was full of small lines that someone saw as binary code, then they translated to ascii values and they got an Euler formula</p>]]></description>
			<category>themagician</category>
		</item>
		<item>
			<title>Reply #8</title>
			<link>https://www.lotterypost.com/thread/215121/1679978</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/215121/1679978</guid>
			<pubDate>Mon, 14 Jun 2010 22:49:34 GMT</pubDate>
			<dc:creator>frenchie</dc:creator>
			<description><![CDATA[<p>Hi-RANDOMLOG,<br /><br />Thank you for your response, but you&#x27;re talking Chinese to me, I do not know anything about macro, someone wrote that one for me and ready to use in an Excel file.<br /><br />I realy do appreciate your effort, and admire your knolege I wiche I could do the same but not today,<br /><br />The reason why I needed a binary code was to play and transfer number into it to see what I can came up with, you never know always try, my things is to work with patterns so, that could lead to something inte... &#x5b;&#xa0;<a href="https://www.lotterypost.com/thread/215121/1679978">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>frenchie</category>
		</item>
		<item>
			<title>Reply #7</title>
			<link>https://www.lotterypost.com/thread/215121/1679903</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/215121/1679903</guid>
			<pubDate>Mon, 14 Jun 2010 21:14:47 GMT</pubDate>
			<dc:creator>RL-RANDOMLOGIC</dc:creator>
			<description><![CDATA[<p>frenchi3<br /><br />ignore the above I have made so many typeo&#x27;s as in the while i = 0 should be While i = 0<br /><br />I was trying to give you an idea where your mistake was without pointing it out directly. Allowing<br /><br />you to solve it.<br /><br />Here is a basic code example the only difference it prints all 16 bits. I will stop playing the stupid me<br /><br />input enter number to convert , L<br /><br />R$ = : i=16:<br /><br />DO WHILE I = 0<br /><br />IF 2 ^ I = L THEN R$ = R$ + 1 ELSE R$ = R$ + 0<br /><br />IF 2 ^ I = L THEN L = (L - 2 ^ I... &#x5b;&#xa0;<a href="https://www.lotterypost.com/thread/215121/1679903">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>RL-RANDOMLOGIC</category>
		</item>
		<item>
			<title>Reply #6</title>
			<link>https://www.lotterypost.com/thread/215121/1679847</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/215121/1679847</guid>
			<pubDate>Mon, 14 Jun 2010 20:37:03 GMT</pubDate>
			<dc:creator>RL-RANDOMLOGIC</dc:creator>
			<description><![CDATA[<p>frenchie<br /><br />I made a mistake shown in bold<br /><br />here you now have (2 ^ i = l), (2 ^ 4 = 16) and (16 = 25) so r = 1<br /><br />You now have the MSD for the binary string. From this point, convert the<br /><br />remaining digits; one digit at a time using the l = l - i each time (2 ^ i = l)<br /><br />I left this undone for you to finish. |_ above should be l = l - 2 ^ i not l = l - i<br /><br />example steps to compleat<br /><br />l = l - i<br /><br />while i = 0<br /><br />i = i - 1<br /><br />if 2 ^ i = l then r = r 1 Else r = r 0<br /><br />if 2 ^ i = l then l</p>]]></description>
			<category>RL-RANDOMLOGIC</category>
		</item>
		<item>
			<title>Reply #5</title>
			<link>https://www.lotterypost.com/thread/215121/1679317</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/215121/1679317</guid>
			<pubDate>Mon, 14 Jun 2010 04:58:55 GMT</pubDate>
			<dc:creator>RL-RANDOMLOGIC</dc:creator>
			<description><![CDATA[<p>frenchie<br /><br />Look at this and It should help you see your error and correct your code<br /><br />l=25 &#x27; number to convert to decimal<br /><br />i = 16 allows function to convert any decimal =65536<br /><br />(The long version)<br /><br />1=16<br /><br />2^i=65536 is 25<br /><br />i=i-1 &#x27;i=15<br /><br />2^i=32768 is 25<br /><br />i=i-1 &#x27;i=14<br /><br />2^i=16384 is 25<br /><br />i=i-1 &#x27;i=13<br /><br />2^i=8192 is 25<br /><br />i=i-1 &#x27;i=12<br /><br />2^i=4096 is 25<br /><br />i=i-1 &#x27;i=11<br /><br />2^i=2048 is 25<br /><br />i=i-1 &#x27;i=10<br /><br />2^i=1024 is 25<br /><br />i=i-1 &#x27;i=9<br /><br />2^i=512 is 25<br /><br />i=i-1 &#x27;i=8<br /><br />2^i=256 is 2... &#x5b;&#xa0;<a href="https://www.lotterypost.com/thread/215121/1679317">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>RL-RANDOMLOGIC</category>
		</item>
		<item>
			<title>Reply #4</title>
			<link>https://www.lotterypost.com/thread/215121/1678405</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/215121/1678405</guid>
			<pubDate>Sun, 13 Jun 2010 08:06:36 GMT</pubDate>
			<dc:creator>frenchie</dc:creator>
			<description><![CDATA[<p>Thank you themagician and RL-RANDOMLOG,<br /><br />your answers were very appreciated, thanks again that helped alot.</p>]]></description>
			<category>frenchie</category>
		</item>
		<item>
			<title>Reply #3</title>
			<link>https://www.lotterypost.com/thread/215121/1678376</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/215121/1678376</guid>
			<pubDate>Sun, 13 Jun 2010 05:15:02 GMT</pubDate>
			<dc:creator>RL-RANDOMLOGIC</dc:creator>
			<description><![CDATA[<p>frenchie<br /><br />I had a little time and looked over your code. When the number to convert is a odd number your code<br /><br />will work correct but if it is even then it will be missing the lsd. Check any even number and it will be missing<br /><br />the 0 digit at the end of the string. 25 binary is 11001 and 50 binary is 110010. Your code is terminating<br /><br />early with all even numbers because the lsd is zero. This is a easy fix.<br /><br />RL</p>]]></description>
			<category>RL-RANDOMLOGIC</category>
		</item>
		<item>
			<title>Reply #2</title>
			<link>https://www.lotterypost.com/thread/215121/1674239</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/215121/1674239</guid>
			<pubDate>Wed, 09 Jun 2010 13:08:11 GMT</pubDate>
			<dc:creator>RL-RANDOMLOGIC</dc:creator>
			<description><![CDATA[<p>Got off the net years ago works well, sorry for the format<br /><br />FUNCTION DecBin$ (Decimal ) STATIC<br /><br />BinNum$ =<br /><br />H$ = HEX$(Decimal )<br /><br />FOR I% = 1 TO LEN(H$)<br /><br />DIGIT% = INSTR( 0123456789ABCDEF , MID$(H$, I%, 1)) - 1<br /><br />IF DIGIT% 0 THEN<br /><br />BinNum$ =<br /><br />EXIT FOR<br /><br />END IF<br /><br />J% = 8<br /><br />K% = 4<br /><br />DO<br /><br />BinNum$ = BinNum$ + RIGHT$(STR$((DIGIT% \ J%) MOD 2), 1)<br /><br />J% = J% - (J% \ 2)<br /><br />K% = K% - 1<br /><br />IF K% = 0 THEN<br /><br />EXIT DO<br /><br />END IF<br /><br />LOOP WHILE J%<br /><br />NEXT I%<br /><br />DecBin$ = BinNum$<br /><br />END FUNCTION</p>]]></description>
			<category>RL-RANDOMLOGIC</category>
		</item>
		<item>
			<title>Reply #1</title>
			<link>https://www.lotterypost.com/thread/215121/1673112</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/215121/1673112</guid>
			<pubDate>Tue, 08 Jun 2010 08:46:02 GMT</pubDate>
			<dc:creator>themagician</dc:creator>
			<description><![CDATA[<p>Hi,<br /><br />Well the number 25 in binary is 11001 and the number 50 in binary is 110010 so I think you may have an error in your array sizes.<br /><br />Rather than correcting your VB code I&#x27;m posting it in php maybe you can translate it to VB, I&#x27;m using recusivity that makes it easy:<br /><br />/**<br /><br />* binary function by themagician<br /><br />* it takes an integer and print its binary value<br /><br />* June - 2010<br /><br />*<br /><br />*/<br /><br />// It prints: 11001<br /><br />binary(25);<br /><br />print \n ;<br /><br />// It prints: 110010<br /><br />binary(50... &#x5b;&#xa0;<a href="https://www.lotterypost.com/thread/215121/1673112">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>themagician</category>
		</item>
		<item>
			<title>Binary code</title>
			<link>https://www.lotterypost.com/thread/215121</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/215121</guid>
			<pubDate>Wed, 02 Jun 2010 23:21:42 GMT</pubDate>
			<dc:creator>frenchie</dc:creator>
			<description><![CDATA[<p>Hi all,<br /><br />I&#x27;m not sure but I think that the Binary code below has an error,can someone test it and correct it if it&#x27;s not correct,because when I enter the number 25 it give me : 11001 et when I put 50 it give me the same : 11001 !!?<br /><br />Thank you.<br /><br />Function DecBin$(V As Variant)<br /><br />Dim r$, L , i%, K<br /><br />r =<br /><br />If IsNumeric(V) Then<br /><br />L = Val(V)<br /><br />i = 16<br /><br />While 2 ^ i L<br /><br />i = i - 1<br /><br />Wend<br /><br />&#x27; Now we have an i that is either equal to L or less.<br /><br />If 2 ^ i = L Then<br /><br />r = 1 Stri... &#x5b;&#xa0;<a href="https://www.lotterypost.com/thread/215121">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>frenchie</category>
		</item>
	</channel>
</rss>

