The enjoyable life with floats....

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

 



Hi,

Probably the first thing one learns in programming 1.01:
    do not direct compare floats for equal.....

One of the tests fails on FreeBSD:
2 DecayCounter
/tmp/typ-C2ukWb5CA /tmp/typ-VIQ7UBigy differ: char 16, line 2
**** DecayCounter test 1 dump_json check failed ****
   ceph-dencoder type DecayCounter select_test 1 dump_json > /tmp/typ-C2ukWb5CA
   ceph-dencoder type DecayCounter select_test 1 encode decode dump_json > /tmp/typ-VIQ7UBigy
2c2
<     "value": 3,
---
>     "value": 2.9896058693769652,

Nice job to fix this weekend.

--WjW
 
_______________________________________________
Dev mailing list -- dev@xxxxxxx
To unsubscribe send an email to dev-leave@xxxxxxx

[Index of Archives]     [CEPH Users]     [Ceph Devel]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux