<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.dungeoncrawlchili.org/index.php?action=history&amp;feed=atom&amp;title=Rounding</id>
	<title>Rounding - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dungeoncrawlchili.org/index.php?action=history&amp;feed=atom&amp;title=Rounding"/>
	<link rel="alternate" type="text/html" href="https://wiki.dungeoncrawlchili.org/index.php?title=Rounding&amp;action=history"/>
	<updated>2026-08-03T02:53:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.dungeoncrawlchili.org/index.php?title=Rounding&amp;diff=2437&amp;oldid=prev</id>
		<title>Maintenance script: Importing CrawlWiki content</title>
		<link rel="alternate" type="text/html" href="https://wiki.dungeoncrawlchili.org/index.php?title=Rounding&amp;diff=2437&amp;oldid=prev"/>
		<updated>2026-06-16T09:13:16Z</updated>

		<summary type="html">&lt;p&gt;Importing CrawlWiki content&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{version033}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Crawl&amp;#039;&amp;#039; uses several types of &amp;#039;&amp;#039;&amp;#039;rounding&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
*Always round up: Numbers are rounded up.&lt;br /&gt;
*Always round down (truncate): Numbers are rounded down, thus ignoring the decimal place. By default, C++ truncates numbers, so if there&amp;#039;s no other indication in the code, it&amp;#039;ll be rounded down.&lt;br /&gt;
*Round half up: 0.5 and up are rounded up, else round down. This may be used for ranges and other numbers that can&amp;#039;t feasibly be randomised.&lt;br /&gt;
*Weighted rounding (&amp;#039;&amp;#039;rounded in a weighted manner&amp;#039;&amp;#039;): The number is tracked, typically to the hundredths place. The decimal place remainder is the % chance to round up. This is very commonly used to avoid hard breakpoints, e.g., spell damage, shield encumbrance, time used to take actions, [[AC]]/[[EV]] all use weighted rounding.&lt;br /&gt;
**For example, if you would take 4.30 [[aut]] to move, you instead have a 30% chance to move at 5 aut, and a (100%-30%=) 70% chance to move at 4 aut.&lt;br /&gt;
**If you have 35.5 [[AC]], for each hit, there is a 50% chance for your AC to be treated as 35, and a 50% chance for your AC to be treated as 36.&lt;br /&gt;
&lt;br /&gt;
==History==&lt;br /&gt;
In general, as the versions progressed, more and more things started to use random rounding. For example, [[AC]] and [[EV]] weren&amp;#039;t randomly rounded until [[0.32]].&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>