Reply To: Large floats produce serialization errors / data loss

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

#17687
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 🙂
    [attachment file=”SetInfinity.png”]

    Thanks again for the report.