DATA STRUCTURE. I have this question to answer and answer does not have to be ve
ID: 3862843 • Letter: D
Question
DATA STRUCTURE.
I have this question to answer and answer does not have to be very long. I have posted questions before but I get very long paragraphs that were copied from google. Please, if you can not write a unique answer. let somebody do it. Thank you.
Do you find the transition from integer representation to floating number conversion tricky? Or, do you not? Discuss this topic. Give one example to demonstrate your point. Your example should start by the phrase" Here is an example of what I mean to say...
Explanation / Answer
Enter a positive or negative variety, either in commonplace (e.g., 134.45) or exponent (e.g., 1.3445e2) type. Indicate uncomplete values with a percentage point (‘.’), and don't use commas. basically, you'll be able to enter what a worm accepts as a floating-point literal, except with none suffix (like ‘f’).
Check the boxes for the IEEE preciseness you want; opt for Double, Single, or both. (Double is that the default.) Double means that a 53-bit significand (less if subnormal) with Associate in Nursing 11-bit exponent; Single means that a 24-bit significand (less if subnormal) with Associate in Nursing 8-bit exponent.
Check the boxes for any output format you want; opt for one or all 10. (Decimal is that the default.)
Click ‘Convert’ to convert.
Click ‘Clear’ to reset the shape and begin from scratch.
If you would like to convert another variety, just type over the original number and click ‘Convert’ — there is no need to click ‘Clear’ first.
Decimal: Display the floating-point number in decimal. (Expand output box, if necessary, to see all digits.)
Binary: Display the floating-point number in binary. (Expand output box, if necessary, to see all digits.)
Normalized decimal scientific notation:
Display the floating-point number in decimal, but compactly, using normalized scientific notation.
Normalized binary scientific notation:
Display the floating-point number in binary, but compactly, using normalized binary scientific notation.
Normalized decimal times a power of two: Display the floating-point number in a hybrid normalized scientific notation, as a normalized decimal number times a power of two.
Decimal integer times a power of two: Display the floating-point number as a decimal integer times a power of two. (The binary representation of the decimal integer is the bit pattern of the floating-point representation, less trailing zeros.) This form is most interesting for negative exponents, since it represents the floating-point number as a dyadic fraction.
Decimal integer times a power of ten: Display the floating-point number as a decimal integer times a power of ten. This form is most interesting for negative exponents, since it represents the floating-point number as a fraction. (Expand output box, if necessary, to see all digits.)
Hexadecimal floating-point constant: Display the floating-point number as a hexadecimal floating-point constant.
Raw binary: Display the floating-point number in its raw IEEE format (sign bit followed by the exponent field followed by the significand field).
Raw hexadecimal: Display the floating-point number in its raw IEEE format, equivalent to the raw binary format but expressed compactly in hexadecimal.
There are two output flags:
Inexact: If checked, this shows that the conversion was inexact; that is, it had to be rounded to an approximation of the input number. (The conversion is inexact when the decimal output does not match the decimal input, but this is a quicker way to tell.)
Note: This converter flags overflow to infinity and underflow to zero as inexact.
Subnormal: If checked, this shows that the quantity was too little, and born-again with but full preciseness (the actual preciseness is shown in parentheses).
To convert the uncomplete a part of variety to a specific base you only repeatedly multiply the quantity by the bottom. when every step the whole number portion is that the next digit. You then discard the whole number portion and continue. Let’s do that by changing 1/7 to base 10:
1/7 (initial value)
10/7 = 1+3/7 (multiply by 10, 1st digit is one)
30/7 = 4+2/7 (discard whole number half, multiply by 10, next digit is four)
20/7 = 2+6/7 (discard whole number half, multiply by 10, next digit is two)
60/7 = 8+4/7 (discard whole number half, multiply by 10, next digit is eight)
40/7 = 5+5/7 (discard whole number half, multiply by 10, next digit is five)
50/7 = 7+1/7 (discard whole number half, multiply by 10, next digit is seven)
10/7 = 1+3/7 (discard whole number half, multiply by 10, next digit is one)
The answer is zero.142857142857… we will see that the daring steps (2-7) repeat endlessly therefore thus we'll ne'er get to a remainder of zero. Instead those self same six digits can repeat forever.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.