Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Java
 QCChart3D for Java
 Plotting negative numbers

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List

* Forum Code is ON
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]


T O P I C    R E V I E W
PeterJ 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)
PeterJ 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.
quinncurtis 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.

Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07