• ✨ ARCHIVE MODE ✨
    The forum has now been set to read-only mode, no new posts, resources, replies etc will not be possible.
    We recommend you join our Discord server to get real-time response: Discord Invite Link

Fixed [Indev 0.52.1] Issues with Math on Different Separators

J

jianmingyong

Guest
I am puzzled why the math functions are not working as intended on a different PC.

For example, I have a script that is
<Math.int(0+0.1)>

However, a comma seperator will result this as -1.
Funny thing is I can't repro this by changing my computer seperator but SViper did get all these funny results in math operations. ( Given that his default seperator is a comma but mine is a period )

I have no idea whats going on but given that the error I get from his log.dat shows that it can't convert that into integer and fail.

I am debating this whether it is a bug...
 

nilllzz

Original Developer
Administrator
P3D Developer
Should be fixed for next version.
It returns -1 as default if it cannot convert the string into an arithmetic expression.
 
Top