With basic math operations for things like score and global variables, you can use 21-bit values for the integer part. For entities, you should use 20-bit values for the integer part.
2618×2618 is 6,853,924. The limit for even a 21-bit value is 2,097,152, this is more than three times that. When squaring something, the numbers being squared must not reach or pass 1448.155. If it does, it'll return false values.