Floating-integral conversions
An rvalue of a floating-point type can be converted to an rvalue of an integer type. The conversion truncates; that is, the fractional part is discarded. The behavior is undefined if the truncated value cannot be represented in the destination type.
Войдите чтобы поставить Нравится
Войдите чтобы прокомментировать