Full threadarbitrandomuser·Julia gets this right. casting to both double and int, it does both a floating point compare and an integer compare , then AND them and returnView on HN