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 Microsoft .Net & .Net Compact Framework
 SPC Control Chart Tools for .Net
 Rounding
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

swbo101

14 Posts

Posted - 08 Aug 2011 :  10:16:06  Show Profile  Reply with Quote
I notice that sometimes the value (lable) for the upper control limits get rounded up. Is there a way to prevent this?

Thanks

quinncurtis

1551 Posts

Posted - 08 Aug 2011 :  13:10:10  Show Profile  Reply with Quote
The values are always going to be rounded. There is only the issue of how many digits to the right of the decimal you want. So, if you want to force the precision to three, use code similar to below:


this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT).LabelDecs = 3; 
this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_LOWER_CONTROL_LIMIT).LabelDecs = 3;
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07