MZ Problem with Visustella CoreEngine and javascript toString()

Plugin: Visustella CoreEngine v 1.30
Problem: javascript toString function includes a comma. This only happens when VisuMZ_CoreEngine is enabled, it doesn't occur when VisuMZ_CoreEngine is not enabled. I am using today's latest version 1.30.


I did submit a bug report but now I'm thinking maybe the answer is as simple as turning off a comma function. Basically if n1 = 12 and n2 = 34, then using n3=n1.toString()+n2.toString() gives 1,234 rather than 1234. When CoreEngine is disabled, I get my expected and intended 1234. I searched for an option within the plugin to not format numbers with a comma but I didn't find that option. Does it exist?

Or, is my code flawed? Is there a better js function for me to use rather than toString?

Spoiler: The Event
1616179159599.png

Spoiler: CoreEngine Plugin OFF
1616179295145.png

Spoiler: CoreEngine Plugin ON
1616179458558.png

Thanks for reading.
Try
n3=n1.toString()+n2
JavaScript:
$gameVariables.value(41).toString()+$gameVariables.value(41);

If not just remove the coma from the string
JavaScript:
let str = $gameVariables.value(41).toString()+$gameVariables.value(41).toString();
str = str.replace(/,/g, '');
$gameVariables.setValue(45, str);
Thanks for the help, @Zero_G . That wouldn't work as both of those numbers need leading zeroes if less than 10, so both need to be turned to 2-digit strings and then concatenated as a 4-digit number.

I did find the solution after using several keywords in the search feature. Turns out there is, indeed, an option to not use a comma in numbers within the plug-in itself. It's

Quality of Life Settings > Digit Grouping > Ex Test > false

So, this query is solved. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-visustella-coreengine-and-javascript-tostring.134573/