Bonjour à tous, Je suis fasse à un problème étrange. Je souhaite faire ce test : valeur1 != valeur2 valeur1 (float) est un champ saisi par l'utilisateur valeur2 (float) provient de la base de données. Et dans mon modèle j'ai trois cas de figure : 0.0 != 0.0 --> false 3.79175 != 3.79175 --> false 96.20825 != 96.20825 --> true Par contre quand je fais ces mêmes cas de figures dans irb, les trois tests revoient false. J'avoue je ne comprends pas trop, j'imagine qu'il y a un comportement de float que je ne connais pas mais je n'arrive pas à pointer le problème. Merci à ceux qui m'aideront. Mike
--------------------- Internet communications are not secure or error free and the contents of any attachment to this e-mail may contain software viruses or other defect which might affect your own computer system. RBC Dexia Investor Services Bank S.A. does not accept liability and/or responsibility for any damage or loss which may occur or be sustained consequently. The recipient is responsible for virus checks before opening any attachment. The information contained in this e-mail may be privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any disclosure, use or copying of the information contained herein is strictly prohibited and may be unlawful. If you receive this in error, please contact the sender and delete the e-mail. --------------------- An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. --------------------- --~--~---------~--~----~------------~-------~--~----~ Vous avez reçu ce message, car vous êtes abonné au groupe "Railsfrance" de Google Groups. Pour transmettre des messages à ce groupe, envoyez un e-mail à l'adresse [email protected] Pour résilier votre abonnement envoyez un e-mail à l'adresse [EMAIL PROTECTED] -~----------~----~----~----~------~----~------~--~---
