nastia94 nastia94
  • 23-03-2020
  • Computers and Technology
contestada

Create a program to convert to IEEE 754 a real number

Respuesta :

0nyi
0nyi 0nyi
  • 23-03-2020

Answer:

IEEE 754 floating-point numbers in C++, Java and Python

Hide Copy Code

typedef union UnFloatingPointIEEE754

{

struct

{

unsigned int mantissa : 23;

unsigned int exponent : 8;

unsigned int sign : 1;

} raw;

float f;

} UFloatingPointIEEE754;

Explanation:

The Bit operation extracts the bit in order to create the desired value (exponent and mantissa), according to IEEE 754 method.

GOOD QUESTION

Answer Link

Otras preguntas

Which of the following statements does NOT contribute to the evidence in support of evolution? (A) Sequences of fossils have been found that show a gradual seri
A number (x) increased by 6 and then the sum is doubled
Which of the following are not a spore-bearing vascular plant? a. ferns b. cycads c. club mosses d. horsetails
what are the positive aspects of stereotypes, if any?
Eric and frank want to equally share 4/3 feet of rope. What length of rope should each friend get? Explain how to use a drawing to help solve the problem.
use the order of operations to evaluate each expression. 4x4+3
How do you simplify 11c + 3(-5c + 4d)?
what is 3x+4y=2 in slope intersect form
Ken spends 1/5 of his money on a dictionary. He gives $21 to his brother and has1/2 of his money left. How much money does Ken have left?
Roxanne has 1/2 as many beads as Sherie. The number of beads Sherie has is 4/5 that of Marcos. Marcos has 165 beads. How many more beads does Marcos have than R