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 type of statement is used to communicate ones feelings in a non confrontational manner?
Astor manufacturing stores hazardous and volatile chemicals in its warehouse. the warehouse has state-of-the-art equipment to make sure the chemicals do not exp
How long does it take for an ice cube to melt in the refrigerator?
Need help on my homework
In what part of the United States are the Appalachian mountains located?
describe the two main reasons European countries went exploring after New World Discovery
ANSWERED: Which two presidents were known for their conservation of land during the Progressive Era? It's Roosevelt and Wilson Option C
Mental tricks that people use to help themselves believe things that are false are called
As I have so much experience working with children I am a good candidate for your childcare position my experience includes helping raise my two much younger s
Analyze the primary causes of the Great Depression. How did this event affect ordinary Americans?