by kevansevans » Mon Jan 25, 2021 11:02 pm
Graf Zahl wrote:const pi = 3.1415926535897932384626433832795;
Wouldn't this open up potential conflict of multiple mods using their own definition of pi? I'd be really annoyed if my mods didn't work because I didn't use the same magic number as a different mod I was trying to replicate.
Most languages have this built into their standard math lib anyways, no harm adding it to ZScript.
[quote="Graf Zahl"]const pi = 3.1415926535897932384626433832795;[/quote]
Wouldn't this open up potential conflict of multiple mods using their own definition of pi? I'd be really annoyed if my mods didn't work because I didn't use the same magic number as a different mod I was trying to replicate.
Most languages have this built into their standard math lib anyways, no harm adding it to ZScript.