[FIX] resource: avoid floating point error in interval
[IMP] resource: use float_compare instead
[REF] revert useless chqnges
[IMP]resource: use correctly float_compare
[FIX]resource: revert correctly
[MERGE]resource: opw 587786: use float_compare to avoid rounding issue for interval computation