I was working on the MoreGrapple mod and for the platforms code i used TZPack as a reference then i realized that the startAmount unitsSold and licencePrice use a weird format like
startAmount:1.3,
unitsSold:7E1,
licencePrice:5E5,
I was wondering why this is? and how real numbers would be written in this format???
E1 means 1 zero (10^1)
E5 means 5 zeroes (10^5)
So 7E1 = 70 and 5E5 = 500000
And you don’t need to write numbers like that in your mod
I’m pretty sure the cause of this is the obfuscator/compressor they use to make the code smaller and harder to read.
Edit: Or maybe they just prefer this way?
Edit 2: Also, in case you don’t know how powers work there could be decimals before the E, and in that case the number after the E represents not only the zeroes but every digit except the first one.
E1 means 1 zero (10^1)
E5 means 5 zeroes (10^5)
So 7E1 = 70 and 5E5 = 500000
And you don’t need to write numbers like that in your mod smile
I’m pretty sure the cause of this is the obfuscator/compressor they use to make the code smaller and harder to read.
Edit: Or maybe they just prefer this way?
Edit 2: Also, in case you don’t know how powers work there could be decimals before the E, and in that case the number after the E represents not only the zeroes but every digit except the first one.