Select Appropriate Difference Between Decimal Float And Double #19
Select appropriate difference between decimal, float and double data type in C#?</p> <pre><code class="language-text"> i) Float and Double are floating binary point types while decimal is a floating decimal point type. ii) Precision difference for float is '7' digit for double is '15' to '16' digit and for decimal is '28' to '29' digits. iii) Some values which cannot be exactly represented hence for those values float and double are more appropriate.</code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs108 CSharp. It can also be found in gs gs108 Data Types, Variables and Operators - Floating and Decimal Data Types - Quiz No.1.