|T O P I C R E V I E W
||Posted - 28 Jun 2010 : 15:38:51
I've hit a problem when plotting negative numbers if I leave and RTProcess Var's minimum range set to Double.MIN_VALUE. The numbers get rounded out to almost zero.
My workaround is to set newRTProcessVar.setMinimumValue(-Double.MAX_VALUE).
Is this a known problem or am I doing something stupid?
|2 L A T E S T R E P L I E S (Newest First)
||Posted - 28 Jun 2010 : 17:31:50
Thanks for the feedback. Sorry about getting the wrong subforum.
On the range question, we're building an application we really don't know the range of the data to be plotted at compile time.
||Posted - 28 Jun 2010 : 17:06:24
First, you are posting in the wrong forum. This belongs in the QCRTGraph for java forum.
The Java definition for Double.MIN_VALUE is the smallest possible positive number not equal to 0. The software is clamping the values less than zero to this value, which is what it should do. You are correct that the default minimum allowable value should not have been set to this value.
While -Double.MAX_VALUE would work, why aren't you choosing a value which is closer to the minimum in your your valid range of values, such at -10 in a (-10 to 10) range, or -200 in a (-200 to 1476) range.