I'm trying to get a string, and execute the code within it using eval(Mystring) and then storing this value inside a game variable to display using a game message.
Problem is, it's returning only int values(For Math.PI, it returns 3 instead of 3,14...., for Math.LN2, it returns 0 instead of 0,693...). How could I get the full number that should be returning when I write Math.something?
Problem is, it's returning only int values(For Math.PI, it returns 3 instead of 3,14...., for Math.LN2, it returns 0 instead of 0,693...). How could I get the full number that should be returning when I write Math.something?