public static function getFloatHash($value) { $value = Float::asNative($value); $bits = Float::floatToIntBits($value); return (int) ($bits ^ $bits >> 32); }