<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://forge.gemwire.uk/index.php?action=history&amp;feed=atom&amp;title=Toolchain%2FMagic_Constants</id>
	<title>Toolchain/Magic Constants - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://forge.gemwire.uk/index.php?action=history&amp;feed=atom&amp;title=Toolchain%2FMagic_Constants"/>
	<link rel="alternate" type="text/html" href="https://forge.gemwire.uk/index.php?title=Toolchain/Magic_Constants&amp;action=history"/>
	<updated>2026-05-18T09:55:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>https://forge.gemwire.uk/index.php?title=Toolchain/Magic_Constants&amp;diff=2386&amp;oldid=prev</id>
		<title>Curle: Curle moved page Toolchain:Magic Constants to Toolchain/Magic Constants</title>
		<link rel="alternate" type="text/html" href="https://forge.gemwire.uk/index.php?title=Toolchain/Magic_Constants&amp;diff=2386&amp;oldid=prev"/>
		<updated>2021-01-11T05:55:11Z</updated>

		<summary type="html">&lt;p&gt;Curle moved page &lt;a href=&quot;/wiki/Toolchain:Magic_Constants&quot; class=&quot;mw-redirect&quot; title=&quot;Toolchain:Magic Constants&quot;&gt;Toolchain/Magic Constants&lt;/a&gt; to &lt;a href=&quot;/wiki/Toolchain/Magic_Constants&quot; title=&quot;Toolchain/Magic Constants&quot;&gt;Toolchain/Magic Constants&lt;/a&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 05:55, 11 January 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Curle</name></author>
	</entry>
	<entry>
		<id>https://forge.gemwire.uk/index.php?title=Toolchain/Magic_Constants&amp;diff=2385&amp;oldid=prev</id>
		<title>Curle: Create page</title>
		<link rel="alternate" type="text/html" href="https://forge.gemwire.uk/index.php?title=Toolchain/Magic_Constants&amp;diff=2385&amp;oldid=prev"/>
		<updated>2021-01-11T05:52:08Z</updated>

		<summary type="html">&lt;p&gt;Create page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The [[Toolchain:MCPCleanup]] utility has many functions, one among them is to convert known constants into code representation for easier visualisation.&lt;br /&gt;
&lt;br /&gt;
== Constants ==&lt;br /&gt;
&lt;br /&gt;
The known substitutions are:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;1.7976[0-9]*[Ee]+308[Dd]&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;Double.MAX_VALUE&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;3.1415[0-9]*[Dd]&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;Math.PI&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;3.1415[0-9]*[Ff]&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;(float)Math.PI&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;6.2831[0-9]*[Dd]&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;(Math.PI * 2D)&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;6.2831[0-9]*[Ff]&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;((float)Math.PI * 2F)&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;4.7123[0-9]*[Dd]&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;(Math.PI * 3D / 2D)&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;4.7123[0-9]*[Ff]&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;((float)Math.PI * 3F / 2F)&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;0.7853[0-9]*[Dd]&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;(Math.PI / 4D)&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;0.7853[0-9]*[Ff]&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;((float)Math.PI / 4F)&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;6.2831[0-9]*[Ff]&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;((float)Math.PI * 2F)&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;0.6283[0-9]*[Dd]&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;(Math.PI / 5D)&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;0.6283[0-9]*[Ff]&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;((float)Math.PI / 5F)&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;57.295[0-9]*[Dd]&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;(180D / Math.PI)&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;57.295[0-9]*[Ff]&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;(180F / (float)Math.PI)&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;0.6981[0-9]*[Dd]&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;(Math.PI * 2D / 9D)&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;0.6981[0-9]*[Ff]&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;((float)Math.PI * 2F / 9F)&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;0.3141[0-9]*[Dd]&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;(Math.PI / 10D)&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;0.3141[0-9]*[Ff]&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;((float)Math.PI / 10F)&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;1.2566[0-9]*[Dd]&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;(Math.PI * 2D / 5D)&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;1.2566[0-9]*[Ff]&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;((float)Math.PI 2F / 5F)&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;0.21991[0-9]*[Dd]&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;(Math.PI * 7D / 100D)&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;0.21991[0-9]*[Ff]&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;((float)Math.PI * 7F / 100F)&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;5.8119[0-9]*[Dd]&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;(Math.PI * 185D / 100D)&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;0.8119[0-9]*[Ff]&amp;lt;/code&amp;gt; -&amp;gt; &amp;lt;code&amp;gt;((float)Math.PI * 185F / 100F)&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Curle</name></author>
	</entry>
</feed>