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

Literal equation L=s1+s2 solve for s2
Spitting cobras can defend themselves by squeezing muscles around the venom glands to squirt venom at an attacker. Supposed spitting cobra rears up to a height
Lori is three times as old as Michelle. In five years Michelle's age will be one half of Lori's age. How old are Lori and Michelle now?
Many people think modern communication technology is having some negative effects on social relationships. Do you agree or disagree.
.write the number in .000101 in scientific notation
Explain why computer systems have both backing storage and RAM
There were 90 runners to start a race. In the first half of the race, 1/3 of them dropped out. In the second half of the race, 3/5 the remaining runners dropp
Help me please not guess please
What is the difference between rights and virtues?|
Find the slope of the line passing through each of the following pairs of points. (5, 6), (3, 4)