Views
Actions
Toolchain/Magic Constants/1.16
From Forge Community Wiki
The Toolchain:MCPCleanup utility has many functions, one among them is to convert known constants into code representation for easier visualisation.
Constants
The known substitutions are:
1.7976[0-9]*[Ee]+308[Dd]
->Double.MAX_VALUE
3.1415[0-9]*[Dd]
->Math.PI
3.1415[0-9]*[Ff]
->(float)Math.PI
6.2831[0-9]*[Dd]
->(Math.PI * 2D)
6.2831[0-9]*[Ff]
->((float)Math.PI * 2F)
4.7123[0-9]*[Dd]
->(Math.PI * 3D / 2D)
4.7123[0-9]*[Ff]
->((float)Math.PI * 3F / 2F)
0.7853[0-9]*[Dd]
->(Math.PI / 4D)
0.7853[0-9]*[Ff]
->((float)Math.PI / 4F)
6.2831[0-9]*[Ff]
->((float)Math.PI * 2F)
0.6283[0-9]*[Dd]
->(Math.PI / 5D)
0.6283[0-9]*[Ff]
->((float)Math.PI / 5F)
57.295[0-9]*[Dd]
->(180D / Math.PI)
57.295[0-9]*[Ff]
->(180F / (float)Math.PI)
0.6981[0-9]*[Dd]
->(Math.PI * 2D / 9D)
0.6981[0-9]*[Ff]
->((float)Math.PI * 2F / 9F)
0.3141[0-9]*[Dd]
->(Math.PI / 10D)
0.3141[0-9]*[Ff]
->((float)Math.PI / 10F)
1.2566[0-9]*[Dd]
->(Math.PI * 2D / 5D)
1.2566[0-9]*[Ff]
->((float)Math.PI 2F / 5F)
0.21991[0-9]*[Dd]
->(Math.PI * 7D / 100D)
0.21991[0-9]*[Ff]
->((float)Math.PI * 7F / 100F)
5.8119[0-9]*[Dd]
->(Math.PI * 185D / 100D)
0.8119[0-9]*[Ff]
->((float)Math.PI * 185F / 100F)