Question

What is the first number before realmax in double precision? could you represent with binary and...

What is the first number before realmax in double precision? could you represent with binary and decimal? thanks

Homework Answers

Answer #1

Solution:

Step 1: What is double precision?

i) The term double precision is something of a misnomer because the precision is not really double. The word double derives from the fact that a double-precision number uses twice as many bits as a regular floating-point number. For example, if a single-precision number requires 32 bits, its double-precision counterpart will be 64 bits long.

ii) Double-precision floating-point format (sometimes called FP64) is a computer number format, usually occupying 64 bits in computer memory; it represents a wide dynamic range of numeric values by using a floating radix point.

iii) Floating point is used to represent fractional values, or when a wider range is needed than is provided by fixed point (of the same bit width), even if at the cost of precision. Double precision may be chosen when the range or precision of single precision would be insufficient.

iv) In the IEEE 754-2008 standard, the 64-bit base-2 format is officially referred to as binary64; it was called double in IEEE 754-1985. IEEE 754 specifies additional floating-point formats, including 32-bit base-2 single precision and, more recently, base-10 representations.

Step 2: realmax : Largest positive floating-point number

Syntax:

f = realmax

f = realmax(precision)

description:

i)f = realmax returns the largest finite floating-point number in IEEE® double precision. This is equal to (2-2^(-52))*2^1023.

ii) f = realmax(precision) returns the largest finite floating-point number in IEEE single or double precision. This is equal to realmax for double precision, and to single((2-2^(-23))*2^127) for single precision.

Step 3: Example

Double-precision binary floating-point is a commonly used format on PCs, due to its wider range over single-precision floating point, in spite of its performance and bandwidth cost. It is commonly known simply as double. The IEEE 754 standard specifies a binary64 as having:

  • Sign bit: 1 bit
  • Exponent: 11 bits
  • Significand precision: 53 bits (52 explicitly stored)

i) The sign bit determines the sign of the number (including when this number is zero, which is signed).

ii) The exponent field is an 11-bit unsigned integer from 0 to 2047, in biased form: an exponent value of 1023 represents the actual zero. Exponents range from −1022 to +1023 because exponents of −1023 (all 0s) and +1024 (all 1s) are reserved for special numbers.

iii) The 53-bit significand precision gives from 15 to 17 significant decimal digits precision (2−53 ≈ 1.11 × 10−16). If a decimal string with at most 15 significant digits is converted to IEEE 754 double-precision representation, and then converted back to a decimal string with the same number of digits, the final result should match the original string. If an IEEE 754 double-precision number is converted to a decimal string with at least 17 significant digits, and then converted back to double-precision representation, the final result must match the original number.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Convert the following binary floating point number 100101.1001010101 using IEEE-756 single precision representation Plz show work,...
Convert the following binary floating point number 100101.1001010101 using IEEE-756 single precision representation Plz show work, thanks!
Convert the hexadecimal number DEADBEEF to binary. Convert the following decimal number to binary: a) 356...
Convert the hexadecimal number DEADBEEF to binary. Convert the following decimal number to binary: a) 356              b) 658 What decimal value does the 8-bit binary number 10011110 represent if it is on a computer using two’s complement representation? What decimal value does the 8-bit binary number 10110100 have if it is on a computer using two’s complement representation? please show your work for question number 4. thank you.
If the word length is 4 binary bits (including sign), what decimal number does 1001 represent...
If the word length is 4 binary bits (including sign), what decimal number does 1001 represent in a. in sign and magnitude? b. in 2’s complement?
4. If a 6-bit binary number is used to represent an analog value in the range...
4. If a 6-bit binary number is used to represent an analog value in the range from -63 to 126, what is the accuracy of the system? In other words, if the binary number is incremented by one, how much change does it represent in the analog value?
17.19 Lab 8B: printing a binary number This lab asks you to use string formatting to...
17.19 Lab 8B: printing a binary number This lab asks you to use string formatting to print a binary number. First you will prompt the user for an integer, using exactly the prompt "Enter a decimal integer: " including the colon character and a space following it. Then print out the decimal number and it's binary equivalent. You do not need to do any mathematical conversion of the integer to binary, you can use the format method. For example, if...
Part a) For an unsigned number that represent binary with n bits, what is the range...
Part a) For an unsigned number that represent binary with n bits, what is the range of value for that? Part b) How many rows appear in a truth table with n input variables? Part c) How many memory location are there if the memory address is n bits?
What is the largest exponent possible in a double-precision float?
What is the largest exponent possible in a double-precision float?
Using the 32-bit binary representation for floating point numbers, represent the number 10111001100112 as a 32...
Using the 32-bit binary representation for floating point numbers, represent the number 10111001100112 as a 32 bit floating point number.
6. What decimal number does the bit pattern 0xBF800000 represent if it is: A two's complement...
6. What decimal number does the bit pattern 0xBF800000 represent if it is: A two's complement integer An unsigned integer A floating point number assuming the IEE 754 single precision format PLEASE EXPLAIN AND SHOW WORK
Find the internal representation of the following decimal number in the Single Precision Floating Point format...
Find the internal representation of the following decimal number in the Single Precision Floating Point format of the value: -17.6 Non-terminating fractions should be carried out 6 places. You will show the different steps involved in this transformation by filling out the fields below. The value 17 in binary is ___ 2 (no leading or trailing zeroes). The value .6 in binary is ____ 2 (complete to 6 places) Normalized fraction: 1.____ 2 x 2Exponent. Exponent=_____. Biased Exponent in Binary:...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT