[Core] Remove a compile warning and better test with float [c2115]