Hi,
compare float would be the one. what could happen is that you need to smooth out the loudness to remove any short cuts of loudness.
to make sure this is the issue, I would simply log the loudness everyframe, then you'll see if it gets below your limit just one frame or not.
then you should average the loudness over few frames and work with that average instead of the per frame value.
Bye,
Jean