Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
IBM hexadecimal floating-point
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Extended-precision 128-bit == Called extended-precision by IBM, a [[quadruple-precision floating-point format|quadruple-precision]] HFP format was added to the System/370 series and was available on some S/360 models (S/360-85, -195, and others by special request or simulated by OS software). The extended-precision fraction field is wider, and the extended-precision number is stored as two double words (16 bytes): :{| |- |colspan="8" |'''High-order part''' |- style="text-align:center" |style="width:20px"|1 |style="width:20px"| |style="width:50px"|7 |style="width:20px"| |style="width:20px"| |style="width:320px"|56 |style="width:20px"| |style="text-align:left"|''(width in bits)'' |- style="text-align:center" |colspan="1" style="text-align:center;background-color:#FC9"|S |colspan="3" style="text-align:center;background-color:#99F"|Exp |colspan="3" style="text-align:center;background-color:#9F9"|Fraction (high-order 14 digits) |colspan="1" style="text-align:center;background-color:#FFF"| |- style="text-align:center" |127 |126 |... |120 |119 |... |64 |align="left"|''(bit index)''* |- |colspan="8" |'''Low-order part''' |- style="text-align:center" |colspan="4"|8 | |56 | |style="text-align:left"|''(width in bits)'' |- style="text-align:center" |colspan="4" style="text-align:center;background-color:#CCC"|Unused |colspan="3" style="text-align:center;background-color:#9F9"|Fraction (low-order 14 digits) |colspan="1" style="text-align:center;background-color:#FFF"| |- style="text-align:center" |63 |colspan="2"|... |56 |55 |... |0 |align="left"|''(bit index)''* |- |colspan="8"| ''* IBM documentation numbers the bits from left to right, so that the most significant bit is designated as bit number 0.'' |} 28 hexadecimal digits of precision is roughly equivalent to 32 decimal digits. A conversion of extended precision HFP to decimal string would require at least 35 significant digits in order to convert back to the same HFP value. The stored exponent in the low-order part is 14 less than the high-order part, unless this would be less than zero.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)