This is a wrapper function for this dedicated purpose, not a replacement of the existing code for every variable. As is, your change can breaks variables displaying in text boxes, and getting them to display right which is the whole point.@Restart
String conversion is fairly heavy, as opposed to simply removing an operation as I've done which actually speeds up MV/MZ. Depending on how often your method is used, you will create serious resource requirements, where as mine will always yield a positive gain on performance.
Ah sorry about that. I admit I didn't really pay too much attention when scanning through stuff. Alright if you have chosen to use the method I suggested...
($gameVariables.value(#) * 10 + 0.1 * 10) / 10;
As I said earlier, "And all that entails". Meaning with what I handed him, he would gain the ability to do so very much. However that ability comes with all the pitfalls of it.
As for Eval, largely it depends on how it's deployed. If it's just exported to an exe... then it's unlikely to be an issue. If however it's deployed to a server, Eval can be used to execute code on a server with the same permissions as the caller.
Not an exhaustive list, just the first handful of results that came up.
Honestly though, for all that I say Eval is bad... RM uses it for it's script commands so, we're already well past not secure and into "uh oh" territory. It's largely just reflex at this point to point out it's a security flaw. It's real crime is just being insanely slow.
Will any of this matter here? Probably not. I'm just very big into optimization.