String to Number incorrect

I just test a very simple String to Number conversion with values like “0.000871849”.
The result is: “0.001”

Yet, if I do a simple Java:


I get the correct result: 8.71849E-4

What’s going on ?


You don’t say where you see this “0.001” value, so i’m going to guess that you’re looking at the output table for the node. In this case, you’re probably seeing a rendering issue (the data is there, it’s being rendered in a rounded fashion;) right click on the column and pick a different renderer.


OK, my bad. Thanks for the info, the renderer was the problem indeed.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.