Direct comparison of floats is not recommended due to the imprecise nature of floats.

Does the priority need to be a float?