la. Decimal to Binary Conversion 1) Using the value of pi as 3.1416,0, convert pi to binary. Write up to 6 digits after the radix point. 2) Convert the binary number you obtained in #1 back to decimal a) What decimal value are you able to obtain? b) How many decimal places of the actual value of pi were preserved? c) In one sentence, explain why some precision was lost

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter9: Records (struct)
Section: Chapter Questions
Problem 10SA
icon
Related questions
Question
la. Decimal to Binary Conversion
1) Using the value of pi as 3.141610, convert pi to binary. Write up to 6 digits after the radix
point.
2) Convert the binary number you obtained in #1 back to decimal
a) What decimal value are you able to obtain?
b) How many decimal places of the actual value of pi were preserved?
c) In one sentence, explain why some precision was lost
Transcribed Image Text:la. Decimal to Binary Conversion 1) Using the value of pi as 3.141610, convert pi to binary. Write up to 6 digits after the radix point. 2) Convert the binary number you obtained in #1 back to decimal a) What decimal value are you able to obtain? b) How many decimal places of the actual value of pi were preserved? c) In one sentence, explain why some precision was lost
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning