problem with IValueList.Locate function

TeeChart for ActiveX, COM and ASP
Post Reply
tdm
Newbie
Newbie
Posts: 22
Joined: Fri Oct 22, 2004 4:00 am
Location: mérignac, france
Contact:

problem with IValueList.Locate function

Post by tdm » Mon Feb 21, 2005 4:15 pm

Hi,
I need to know which point of a serie as the DOUBLE value 3652.3698 (exemple).
The problem is the following.
My double number to find in the serie is not exactly the same as the one in the serie (round errors).
ex : 3.9 is saved in my C variable as 3.89871.
Is there a method to find a number with a certain precision without analysing all the series values by code ?

I am writting my program in C.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Feb 22, 2005 12:04 pm

Hi tdm,
My double number to find in the serie is not exactly the same as the one in the serie (round errors).
ex : 3.9 is saved in my C variable as 3.89871.
I'm afraid this is not possible. If the number was the same then it would work.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply