tailieunhanh - Lecture Practical C++ programming - Chapter 19: Floating point

This chapter only covers the basics. There is an entire science, Numerical Analysis, devoted to studying the behavior of numeric calculations and devising methods to minimize the impact of floating point errors. This chapter does serve as a brief introduction to the subject. | Chapter - 19 Floating Point Floating Point Format Is the sign plus or minus . Is the 4 digit fraction. e Is the single-digit exponent. Zero is We represent these numbers in E format e. Examples Notation Number 0 5 330000 0 Floating Point Add Sub 1. Start with the numbers 0 The number is The number is 2. Add guard digits to both numbers 0 The number is The number is 3. Shift the number with the smallest exponent to the right one digit and numbers match. 0 The number is The number is 4. Add the two fractions. The result has the same exponent a s the two numbers. 0 The number is The number is 0 Result .

crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.