- #1
Questions999
- 151
- 0
Convert -124.6845 with floating point to IEEE 754...so this is 1111100.1010111100111011011001000101101000011100101011 in binary...1 bit is for the sign (1)..what about the rest?
Have you looked at IEEE 754? Here's a wiki page that discusses this standard - http://en.wikipedia.org/wiki/IEEE_754-2008Elaia06 said:Convert -124.6845 with floating point to IEEE 754...so this is 1111100.1010111100111011011001000101101000011100101011 in binary...1 bit is for the sign (1)..what about the rest?
IEEE 754 is a standard for floating-point arithmetic in computer programming. It defines how numbers with fractional parts are represented and manipulated in binary format.
The purpose of IEEE 754 is to ensure consistency and accuracy in performing calculations with floating-point numbers across different computer systems and programming languages.
IEEE 754 uses a sign bit, exponent, and mantissa to represent floating-point numbers in binary format. The sign bit indicates whether the number is positive or negative, the exponent determines the magnitude of the number, and the mantissa represents the fractional part of the number.
There are two types of floating-point numbers in IEEE 754: single precision (32-bit) and double precision (64-bit). Single precision can represent numbers with 7-8 significant digits, while double precision can represent numbers with 15-16 significant digits.
IEEE 754 has special bit patterns reserved for infinity and NaN (Not a Number). If a calculation results in an overflow or undefined result, these bit patterns will be used to represent the result instead of a numerical value.