Wireshark-dev: [Wireshark-dev] Sorting floats?

From: "Anders Broman" <anders.broman@xxxxxxxxxxxx>
Date: Tue, 17 Feb 2009 09:41:55 +0100
Title: Sorting floats?

Hi,
The following code in rtp_analysis.c
        case 4:
                f1=atof(text1);
                f2=atof(text2);
                if (fabs(f1-f2)<0.0000005)
                        return 0;
                if (f1<f2)
                        return -1;
                return 1;
Is used to sort floats but it seems not to give the right result. Does any one know how to fix it?

Regards
Anders