Primitives (such as floats) don't have methods; you can and have to compare them with the ordinary arithmetic operators.

kind regards,

Jos