Support for very large numbers
Posted: Thu Apr 05, 2012 7:45 am
When adding very large number teechart throws the below error with respect to Math.Round
example: 9.99973924413977E+259
System.ArgumentOutOfRangeException: Rounding digits must be between 0 and 15, inclusive.
Parameter name: digits
at System.Math.Round(Double value, Int32 digits)
at Steema.TeeChart.Utils.SignificantDifference(Double d1, Double d2)
at Steema.TeeChart.Axis.AxisDraw.DoDefaultLabels()
at Steema.TeeChart.Axis.AxisDraw.DoNotCustomLabels()
at Steema.TeeChart.Axis.AxisDraw.Draw(Boolean calcPosAxis)
at Steema.TeeChart.Axis.Draw(Boolean calcPosAxis)
at Steema.TeeChart.Axes.Draw(Graphics3D g)
at Steema.TeeChart.Chart.InternalDraw(Graphics g, Boolean noTools)
at Steema.TeeChart.Chart.InternalDraw(Graphics g)
at Steema.TeeChart.TChart.Draw(Graphics g)
at Steema.TeeChart.TChart.OnPaint(PaintEventArgs pe)
example: 9.99973924413977E+259
System.ArgumentOutOfRangeException: Rounding digits must be between 0 and 15, inclusive.
Parameter name: digits
at System.Math.Round(Double value, Int32 digits)
at Steema.TeeChart.Utils.SignificantDifference(Double d1, Double d2)
at Steema.TeeChart.Axis.AxisDraw.DoDefaultLabels()
at Steema.TeeChart.Axis.AxisDraw.DoNotCustomLabels()
at Steema.TeeChart.Axis.AxisDraw.Draw(Boolean calcPosAxis)
at Steema.TeeChart.Axis.Draw(Boolean calcPosAxis)
at Steema.TeeChart.Axes.Draw(Graphics3D g)
at Steema.TeeChart.Chart.InternalDraw(Graphics g, Boolean noTools)
at Steema.TeeChart.Chart.InternalDraw(Graphics g)
at Steema.TeeChart.TChart.Draw(Graphics g)
at Steema.TeeChart.TChart.OnPaint(PaintEventArgs pe)