Decision Tree1 [Notes] Ch.13 More C++ Basics and Branching (Runestone) I. Implicit Type Conversions 1. int to double 1. Widening conversion: a double can always hold any integer value. (1) A double is a wider data type than an int. (2) There is no info loss in this conversion, so this conversion and other widening conversions are generally considered safe. 2. double to int (1) The double value is truncated and only the integer part of the number is retained. (2) Fr.. 2022. 11. 18. 이전 1 다음