Jump to content

Talk:Double-precision floating-point format

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Semi-protected edit request on 28 December 2024

[edit]

1.) change: 'The sign bit determines the sign of the number (including when this number is zero, which is signed).' into: 'The sign bit determines the sign of the number (including when this number is zero, which is signed). "1" stands for negative.'

2.) change: 'The 53-bit significand precision gives from 15 to 17 significant decimal digits precision (2−53 ≈ 1.11 × 10−16). If a decimal...' into: 'The 53-bit significand precision gives from 15 to 17 significant decimal digits precision (2−53 ≈ 1.11 × 10−16) for "normal" numbers, denormal values have graceful degrading precision down to only one bit for the smallest value different from zero. If a decimal...'

3.) add a section "Additional info and curiosities" above "Notes and references" with the following content: '== Additional info and curiosities == The IEEE 754 standard allows two different views / decodings for the numbers, see Section 3.3 "Sets of floating-point data" in 2019 ver. of the standard. One described above with a fractional understanding of the significand and a bias of 1023 for the exponent, the other understanding the significand as binary integer, 2^52 times larger, and in turn the bias for the exponent 52 larger, 1075, which produces smaller effective exponents and by that the same final result. The fractional view is common for binaryxxx datatypes, while the integral is for decimalxxx datatypes.' 176.4.142.98 (talk) 23:37, 28 December 2024 (UTC)[reply]

 Not done: please provide reliable sources that support the change you want to be made. MadGuy7023 (talk) 23:41, 28 December 2024 (UTC)[reply]
While (1) and (2) are almost OK for me (just note that the standard term is "subnormal", not "denormal"), (3) does not make sense; it is so badly written that I can hardly see what the user wants to say; there is a possible confusion between what the standard describes for its internal specification and what is allowed to do (by whom?). — Vincent Lefèvre (talk) 01:30, 29 December 2024 (UTC)[reply]
@Vincent Lefèvre: if you feel correct information 'badly written' just improve instead of suppressing. As well in the standard as in wikipedia.
176.4.142.98 (talk) 10:48, 29 December 2024 (UTC)[reply]
@MadGuy: ( nice name ), the reliable source is the standard itself, 1) and 2) are obvious, for 3) I pointed to the section, more detailed quote:"It is also convenient for some purposes to view the significand as an integer; in which case the finite floating-point numbers are described thus: ...".
176.4.142.98 (talk) 10:47, 29 December 2024 (UTC)[reply]
For (3), you are misreading the standard. Concerning the ability to view the significand as an integer or some other way, this is a generality (independent from the IEEE 754 standard) already covered by both Floating-point arithmetic and Significand (if not detailed enough, these articles could be improved). — Vincent Lefèvre (talk) 11:43, 29 December 2024 (UTC)[reply]
 Not done for now: please establish a consensus for this alteration before using the {{Edit semi-protected}} template. – Anne drew (talk · contribs) 03:54, 31 December 2024 (UTC)[reply]

Hello, I think for points 1.) and 2.) we have consensus, and they provide valuable information. For 3.) it's difficult to find consensus with Vincent Lefèvre, he's a notorious 'no no' reverter, and prefers his very own understanding of 'good' or right. IMHO the info provided is correct, is qualified, is backed by citation, and is valuable for users to see the differences between the encodings and understandings, else some may be irritated about the different options. To keep the main article 'clean' I proposed to put into the separate section as described, but it is relevant info and should not be suppressed because one special user is not common with it. As the citation / the IEEE 754 standard paper is behind a paywall and can't be checked by everybody I provide a longer citation:

"In the foregoing description, the significand m is viewed in a scientific form, with the radix point
immediately following the first digit. It is also convenient for some purposes to view the significand as an
integer; in which case the finite floating-point numbers are described thus:
― Signed zero and non-zero floating-point numbers of the form (−1)s ×b q ×c, where
― s is 0 or 1.
― q is any integer emin ≤ q + p − 1 ≤ emax.
― c is a number represented by a digit string of the form
d0 d1 d2...dp −1 where di is an integer digit 0 ≤ di < b (c is therefore an integer with 0 ≤ c < b p).
This view of the significand as an integer c, with its corresponding exponent q, describes exactly the same
set of zero and non-zero floating-point numbers as the view in scientific form. (For finite floating-point
numbers, e = q + p − 1 and m = c × b1− p.)"

This info isn't widespread, but is relevant, at least for people who want to understand / deal with binary and decimal datatypes. The info provided is correct, Vincent's 'you read wrong' is simply wrong, he know's about the point and accepts the info elsewhere, but - for whatever reason - doesn't want it in this article. That's personal preference, technical / enceclopedical it belongs into this article because this datatype is affected. If it's 'not well written' I encourage every experienced editor to improve, but do not suppress! So pls. implement or explain why not. 176.4.135.141 (talk) 15:35, 31 December 2024 (UTC)[reply]

These two views are just used for the internal specification in the standard ("In the foregoing description"). There are no requirements on which view(s) to choose by implementations (for their own descriptions, API, etc.). For instance, the ISO C language chooses a 3rd one, where the fractional point is before the first digit (most significant digit). Note also that the article Floating-point arithmetic about the generalities already mentions the above two views as they are quite general common views, often used in practice. Moreover, while the text from the IEEE 754 is clear, yours is unclear and has various mistakes. For instance, there are two (internal) views, but decoding is not affected (and the above citation has nothing to do with decoding). — Vincent Lefèvre (talk) 09:17, 3 January 2025 (UTC)[reply]

More on the two (or maybe three) "views"

[edit]

I think the underlying issue here is that it can be hard for a newcomer to understand exactly where the radix point is. I had a lot of difficulty with this the first time I started actually digging into IEEE754 floating point at the bit level, and I assume lots of other learners do, too.

Everybody knows (every description explains) that there's a fractional part fff, a hidden bit H, and an exponent ee. But if you don't know any better, there are at least three possibilities for how to put them together to compute the represented value:

  1. Hfff. × 2ee
  2. H.fff × 2ee
  3. 0.Hfff × 2ee

Now, in fact, IEEE754 primarily uses formulation #2, and most descriptions of IEEE754 do, too. (The other important fact is that the formulation H.fff × 2ee holds regardless of whether the hidden bit H is 1 or 0, that is, whether we're dealing with normal or subnormal numbers. For the subnormal numbers, of course, there's an additional wrinkle with the value of ee.)

Formulation #1, on the other hand, though it's not typically used when discussing IEEE754 floating point, does have a certain amount to recommend it. In particular, represented that way, the significand is an integer, which may make manipulating it easier. I recently noticed that formulation #2 is used rather extensively by Muller et al. in their Handbook of Floating-Point Arithmetic, where they call the exponent in that representation the 'quantum'.

And then to complete the picture, at least if you're a C programmer, formulation #3 is effectively what the standard library function frexp gives you.

(Needless to say, for formulations 1, 2, and 3 to represent the same value, they all have to use different values for ee, differing by offsets equal to the number of significand bits, ±1.)

Now, I realize that I haven't said anything here that Vincent Lefèvre hasn't said, or that 176.4.1xx.xxx hasn't said, or that the passage from IEEE 754 cited by 176.4.1xx.xxx hasn't said, or that various Wikipedia articles haven't said — somewhere. I'm summarizing this just to make the point that although it's all second nature to the experts, it can really be pretty hard to "get" at first, so it's worth working to make sure that our description(s) are clear and complete (but hopefully also concise). The mechanics of floating point formats are — necessarily but perhaps unfortunately — spread out in lots of articles: in the descriptions of specific formats like this one and Single-precision floating-point format and Quadruple-precision floating-point format, but also the more general articles like IEEE 754 and Floating-point arithmetic. There's a delicate balance to be struck between saying everything everywhere, versus having thumbnail summaries in most articles but referring to one, central article for the gory details.

We're probably doing a good enough job of striking that balance already — I'm not trying to suggest otherwise. And going back to my first point, this article, at least, does make it nice and explicit where the radix point is. (I wonder if it's been rewritten since the time I had such trouble understanding this point?). But there's always room for improvement, and I think having an aside, somewhere, along the lines of IEEE754's "It is also convenient for some purposes to view the significand as an integer" would be useful. —scs (talk) 14:47, 11 January 2025 (UTC)[reply]

Comment crée un jeux sur roblox

[edit]

œ 77.143.72.41 (talk) 08:10, 29 October 2025 (UTC)[reply]

Coment être admin

[edit]

coment être admin 2605:B100:536:33E9:D406:3AEB:7156:7B61 (talk) 23:35, 1 November 2025 (UTC)[reply]

Coment être admin 2605:B100:536:33E9:D406:3AEB:7156:7B61 (talk) 23:35, 1 November 2025 (UTC)[reply]

Coment être admin 2605:B100:536:33E9:D406:3AEB:7156:7B61 (talk) 23:36, 1 November 2025 (UTC)[reply]

A 99 nuit

[edit]

coment être admin 2605:B100:536:33E9:D406:3AEB:7156:7B61 (talk) 23:37, 1 November 2025 (UTC)[reply]