Convert a decimal fractional number 34/5 to its binary equivalent using a program to evaluate the bits of the fractional part for at least upto the second repeating block. i have written some code in python however it is not getting an output at all, so either fixing the code or writing another one would be beyond helpful def binary(n,k): n = 8.6 k = 3 #'n' is the fractional number #'k' is the number of bits up to the loop...
The code is to convert the fractional part of a decimal number
to its hexadecimal form.
Can you explain the code, for example ,why the fractional part
need to multiply 16 instead of devise 16?
FracNum DecNum-num int count, IntPart float FracPart; float temp temp-FracNum *16; FracPartstemp- (int) temp; //getting Fractional part from temp IntPart (int) temp; count-e ise while (FracPart >e && count<=6) //while fractional part e and count Less than or equal to 6 then //Now taking fractional...
Problem 1. (20 pts) Convert the following number to hexadecimal a. (5 pts)) Convert 4.2 to binary form using six digits for the fractional part b. (5 pts) Convert the result you obtained in the previous item back to decimal, with at least five digits in the fractional part. What is the absolute error that you get when the result is compared to the original number. c. (5 pts) Convert directly, without using the result in item a 4.2 to...
convert the following decimal values to IEEE 754 single precision. when converting the fractional part to binary, stop when the total number of bits in the mantissa is 12. Give your answer in hex. 1. 48.0 2. 11.11
convert 900 atm to equivalent in mmhq
simplify & compare equivalent expressions written in both
radical form & with rational (fractional) exponents.
(please as clear as possible & thank you in advance for
the help)
*there are two different problems to solve here, #10 &
#102*
10. 3/5y-42/5y + 1x + x 102.( (m",va)* (mºnº)"
Convert the single-precision, IEED 754 floating point number 3C800000 into its decimal equivalent. Convert the single-precision, IEED 754 floating point number BFC0000000000000 into its decimal equivalent.
4. (5 points) Conversion form NFA to equivalent DFA Convert the following NFA into an equivalent DFA by using the Powerset-Construction. Write the transition table and draw the final DFA. start — 9o
3. (3 pts.) Convert the following double integral to an equivalent polar form but do NOT evaluate: 4-y2
3. (3 pts.) Convert the following double integral to an equivalent polar form but do NOT evaluate: 4-y2
convert the rate of 28 qt|\wk to an equivalent rate measured in pt\d