String to Number incorrect

Hi,
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:

Double.valueOf("0.000871849");

I get the correct result: 8.71849E-4

What’s going on ?

Thanks.

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.

2 Likes

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.