We implement this by first rounding to nearest integer using the current rouding mode, then converting this value from floating point to an integral value.