Reply To: Large floats produce serialization errors / data loss

NodeCanvas Forums Support Large floats produce serialization errors / data loss Reply To: Large floats produce serialization errors / data loss

#12604
Gavalakis
Keymaster

Hey,
So, the parsing is fixed. You can open up fsJsonParser.cs and at line #244,

Change this:

To this:

This will take care of the parsing error.
The second error about serializing “1e+35” is not yet fixed though.

If you want to set a variable to infinity via the SetFloat action, you can do so by actually writing “Infinity” in the “Value B” to set 🙂
SetInfinity

Thanks again for the report.

Join us on Discord: https://discord.gg/97q2Rjh

Attachments:
  1. SetInfinity.png