Numbers are IEEE 754 floating point. It's a separate standard which they just had to reference.
I do agree that it's bad style, because it doesn't clearly communicate the intention. If you want something that returns true or false, you should return true or false.