Page 1 of 1

text export float precision

Posted: Thu Mar 10, 2011 7:51 pm
by 15653942
If my series entirely consists of very small numbers, I'm not getting enough precision out of the default text export to have useful numbers. Is there a way to control this?

Re: text export float precision

Posted: Fri Mar 11, 2011 11:10 am
by 10050769
Hello sring,

You need change value format as do in next example

Code: Select all

        private void InitializeChart()
        {
            tChart1.Aspect.View3D = false;
            Steema.TeeChart.Styles.Line Series1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
            Series1.Add(0.000001);
            Series1.Add(0.0001);
            Series1.Add(0.001);
            Series1.Add(0.00001);
            Series1.Add(0.01);
            Series1.Add(0.0000001);
            Series1.ValueFormat = "#0.0000000";
            tChart1.Export.Data.Text.IncludeIndex = true;
            tChart1.Export.Data.Text.Save(@"C:\Chart1.txt"); 
        }
Could you tell us if changing ValueFormat your problem is solved?

I hope will helps.

Thanks,

Re: text export float precision

Posted: Fri Mar 11, 2011 4:08 pm
by 15653942
That fixed the problem. Thanks