<?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%2F1.18</id>
	<title>Toolchain/Magic Constants/1.18 - 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%2F1.18"/>
	<link rel="alternate" type="text/html" href="https://forge.gemwire.uk/index.php?title=Toolchain/Magic_Constants/1.18&amp;action=history"/>
	<updated>2026-05-22T21:57:52Z</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/1.18&amp;diff=3233&amp;oldid=prev</id>
		<title>ShrimpBot: Copy Toolchain/Magic Constants to MC1.18 archive</title>
		<link rel="alternate" type="text/html" href="https://forge.gemwire.uk/index.php?title=Toolchain/Magic_Constants/1.18&amp;diff=3233&amp;oldid=prev"/>
		<updated>2022-06-10T07:46:11Z</updated>

		<summary type="html">&lt;p&gt;Copy &lt;a href=&quot;/wiki/Toolchain/Magic_Constants&quot; title=&quot;Toolchain/Magic Constants&quot;&gt;Toolchain/Magic Constants&lt;/a&gt; to MC1.18 archive&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The [[Toolchain:MCPCleanup/1.18|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>ShrimpBot</name></author>
	</entry>
</feed>