INM home

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: comprends pas les if()



On 5/09/02 14:30, « CWF1Jerome@aol.com » <CWF1Jerome@aol.com> wrote:

> salut la piste
> 
> ya un truc que je pige pas !

L'explication que je verrais c'est que dans ton cas ttA soit egal à, 
disons
50.000001, et ttB soit égal à 50.000002, ils sont donc inégaux... Ce qui
expliquerait également qu'ils deviennent égaux une fois passés en 
integer...
Tu peux augmenter the floatprecision pour vérifier si c'est ce qui se
passe... Ou encore changer cette ligne :

if ttA=ttB then

Par cette ligne:

If abs(ttA - ttB) < 0.001 then

Ou bien encore par celle ci:

If string(ttA) = string(ttB) then

Ceci étant dit, tu y perdrais bien évidemment en précision...

Nonoche
-- 
Kaboom. Wow. Booh. Kapow. Hahaha.
http://www.nonoche.com/



pistes-l List Home | Main Index | Thread Index
Search archives

 

 


© 2002 Integration New Media. All rights reserved.
Legal | Sitemap

 

Services Solutions Products Support Gallery Store Download Feedback Contact About Us