<?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>There was no need to include any &#x22;divide by zero&#x22; logic in the hot/cold script!</title>
		<link>/blogentry/190075</link>
		<atom:link href="https://www.lotterypost.com/rss/blogcomments/190075" rel="self" type="application/rss+xml" />
		<description>hypersoniq's Blog: There was no need to include any &#x22;divide by zero&#x22; logic in the hot/cold script!</description>
		<dc:language>en-us</dc:language>
		<generator>Lottery Post RSS Generator</generator>
		<item>
			<title>Original Blog Entry: There was no need to include any &#x22;divide by zero&#x22; logic in the hot/cold script!</title>
			<link>/blogentry/190075</link>
			<guid isPermaLink="true">/blogentry/190075</guid>
			<pubDate>Sun, 16 Mar 2025 10:56:53 GMT</pubDate>
			<dc:creator>hypersoniq</dc:creator>
			<description><![CDATA[<p>The divisor in the program when calculating the percent to auto range hot and cold is always equal to the number of draws (X). The dividend is the number of times a particular number was counted. If a number does not appear, 0 divided by X is a legal operation that returns 0.<br /><br />Had this been a situation where the divisor MIGHT equal zero there are 2 ways (at least) to deal with it in Python. One is an if statement to check that the divisor was 0, the other is a Try and Except block that would try the division and execute the code in an except block if it encountered a divide by zero error.<br /><br />To test, I ran the code with a small value of X=5, and the numbers that had a count of 0 were classified as cold with a percent of 0.<br /><br />When I added that as an item to the checklist (to check for possible errors) I was just trying to cover everything that could go wrong. So, stopping to think about what was actually happening resulted in adding no extra lines of code because the scenario of division BY zero was not a thing that could happen (unless for some reason I set X to 0, then I guess I would deserve that error.<br /><br />Now it is time to freeze the updating and study the output to find any links between the classifications of hot and cold and the follower distributions. The first experiments have determined that using hot and cold as a reduction technique still leaves a great deal of numbers in the neutral zone, but the neutral classification NNN appears way more than any other classification combo.<br /><br />Knowing that there is no chance for the division by zero error means that this script will work with the jackpot games as well... a place where eliminating numbers could be more helpful!... &#x5b;&#xa0;<a href="/blogentry/190075">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>Blog Entry</category>
			<category>hypersoniq</category>
			<wfw:comment>https://www.lotterypost.com/blogentry/190075</wfw:comment>
		</item>
	</channel>
</rss>

