Conversion of float to long int

In a problem on some other judge, Im required to convert a floating point number to the long integer data type. The floating point number is 400330.096752 and on conversion to long int by explicit type casting it becomes 400329. How do i resolve this error