Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Java
 QCChart3D for Java
 Plotting negative numbers
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

PeterJ

26 Posts

Posted - 28 Jun 2010 :  15:38:51  Show Profile  Reply with Quote
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?

quinncurtis

1531 Posts

Posted - 28 Jun 2010 :  17:06:24  Show Profile  Reply with Quote
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.

Go to Top of Page

PeterJ

26 Posts

Posted - 28 Jun 2010 :  17:31:50  Show Profile  Reply with Quote
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.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07