Talk:Ones' complement
This is the talk page for discussing improvements to the Ones' complement article. This is not a forum for general discussion of the article's subject. |
Article policies
|
Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
Archives: 1 |
![]() | This article has not yet been rated on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||||||||||||||||||||
Please add the quality rating to the {{WikiProject banner shell}} template instead of this project banner. See WP:PIQA for details.
Please add the quality rating to the {{WikiProject banner shell}} template instead of this project banner. See WP:PIQA for details.
|
![]() | Text and/or other creative content from this version of ones' complement was copied or moved into signed number representations with this edit on 09:18 (UTC), 15 August 2013. The former page's history now serves to provide attribution for that content in the latter page, and it must not be deleted as long as the latter page exists. |
Comment
The entire discussion on binary number systems seems muddled and in need of some organizing and better descriptions of things not 2's complement. This article is intended as a start on that effort. If it passes initial muster I'll continue with cleaning and organizing a couple of closely related pages.
KentOlsen (talk) 22:14, 28 January 2011 (UTC)
- One thing that will help it pass initial muster is a quality source that describes the concept. See WP:Reliable Sources for a long and confusing description of what we consider a good source. If you've got that, keep crackin. (p.S. I'm moving this page to conform with the naming guidelines - WP:MOS) The Interior(Talk) 00:44, 29 January 2011 (UTC)
- Here's my 2c's worth:
- Yes, definitely needs reliable sources - Wikipedia is not the place to write unsourced essays.
- According to signed number representations and a lengthy discussion on its talk page, the correct term is "ones' complement", not "one's complement".
- The Basics section seems to be plain wrong; surely the whole point of ones' complement is that it replaces subtraction with additon i.e. you do not need to subtract 19, because you add the ones' complement representation of -19 instead.
- At the moment, I think that the ones' complement section in the signed number representations article is clearer, more concise and more accurate than this essay. Gandalf61 (talk) 17:09, 30 January 2011 (UTC)
- Here's my 2c's worth:
709 representation.
The statement on the 709 and its derivatives is not exactly true. They used 1's complement in 36 and 72 bit quantities, but 2's complement in 15 bits. Coders had to be aware of this fact in using the AXC instruction on negative quantities. — Preceding unsigned comment added by 71.175.142.69 (talk) 13:52, 28 July 2011 (UTC)
- 709 is sign-magnitude. As I understand it, though, index registers are two's complement. Fortran, at least, uses only 15 bit (plus sign) integers. I think that means that 36 and 72 bit integers are done in software. Gah4 (talk) 06:09, 14 April 2019 (UTC)
Traductions
I'm a newbie with wikipedia; but there are others traductions of this page linked between themselves, but not with the english one. Who could resolve it? Mtorrecilla (talk) 11:14, 26 August 2011 (UTC)
Isn't this supposed to be ones' complement (with the apostrophe AFTER the "s")?
Both Knuth's TAOCP volume 2 and the ISO C standards have it that way, with TAOCP giving the rationale behind it (and why the rule is different for two's complement). Actually, I'm just going to go ahead and change that since Knuth and ISO seem to me to be authoratative. I don't know how to change the page title however, so someone else will have to look into that. It will be a good test on how Wikipedia works :-) — Preceding unsigned comment added by 175.38.161.199 (talk) 14:43, 4 November 2011 (UTC)
- I'm with you. Ones' is the complement of a plurality of ones, two's complement is the complement of a singular two. There's a debate about this on the Wikipedia talk:WikiProject Mathematics page where there's a call for more citations for further confirmation. --Matt Westwood 20:18, 4 November 2011 (UTC)
- Oh no, I don't need any sources, just someone knowledgeable about the topic. We should move it. Thanks for answering. The Interior - (Talk) 02:34, 5 November 2011 (UTC)
- I'm only an expert in that I was a professional programmer of LINC, LINC-8, and PDP-12 computers, which were at least in part one's complement computers. I remember that none of the literature associated with these computers used "ones' complement" and all of it used "one's complement". I cannot claim my memory is perfect. While none of the literature is extant, so no citation is possible now, references did exist during the time these computers were sold: the programming manuals. If I ever find a manual in a box in my basement, I'll revisit this page. David Spector (talk) 22:20, 24 July 2013 (UTC)
- Some literature is available here for the LINC, here for the LINC-8 and here for the PDP-12. wneo (talk) 11:31, 6 November 2018 (UTC)
- "Some literature" as in "a brochure from DEC about the LINC", which says "l's complement", which I guess is equivalent to "one's complement". Guy Harris (talk) 18:00, 6 November 2018 (UTC)
- The 1961 PDP-1 Handbook also says "1's complement"; the 1963 PDP-4 Programming Manual speaks of "one's or two's complement arithmetic"; and the 1971 PDP-12 System Reference Manual speaks of "one's complement", "two's complement", and "2's complement" arithmetic.
- On the other hand, the UNIVAC 1108 System Description from 1970 speaks of "ones complement", with no apostrophe anywhere. However, the earlier 1108 Processor and Storage Reference Manual from 1966 says "one's complement" and "l's complement" but also says "ones complement" with no apostrophe. Guy Harris (talk) 18:13, 6 November 2018 (UTC)
- "Some literature" as in "a brochure from DEC about the LINC", which says "l's complement", which I guess is equivalent to "one's complement". Guy Harris (talk) 18:00, 6 November 2018 (UTC)
- Some literature is available here for the LINC, here for the LINC-8 and here for the PDP-12. wneo (talk) 11:31, 6 November 2018 (UTC)
From Method_of_complements#Numeric_complements, the apostrophe placement is suggested by Knuth, and is relatively recent in the timeline of computation. But that article notes that in many cases the radix is known, the distinction isn't needed, and people aren't always good at getting it right. Even though Knuth has been around close to forever, many computer manuals are old enough to not know this convention. Articles should get it right, unless there is a historical reason to be different. (Such as a direct quote.) I suppose I don't worry about it in talk pages, which are less formal. The distinction comes from digit complement subtracting each digit from (radix-1), such that it is plural. I suspect that there might be some that use the plural but non-possessive form, especially in older literature. Gah4 (talk) 21:32, 6 November 2018 (UTC)
All moved back
THis was the text I found inside this page:
- This should be the primary article for ones' complement and the "one's complement" should redirect here. The correct "apostrophe after the s" is authoritative from Knuth's TAOCP volume 2 (where the explanation as to why this is so exists) and ISO C99 et al.
- However, while I've edited the articles themselves, I'm not confident enough to do the redirection stuff.
Not sure who wrote it. Never mind. I have moved everything back into here, by:
- a) Renaming "One's complement" to "One's Complement"
- b) Copying everything from "Ones' Complement" into "Ones' complement"
- c) Replacing the text in "Ones' Complement" with a redirect to "Ones' complement"
- d) Redirecting all the existing redirects to "Ones' complement"
- e) Finally, doing this talk page. --Matt Westwood 06:38, 5 November 2011 (UTC)
Requested move
- The following discussion is an archived discussion of a requested move. Please do not modify it. Subsequent comments should be made in a new section on the talk page. No further edits should be made to this section.
The result of the move request was: Closed early in favor of centralizing discussion at the RfC. Cybercobra (talk) 04:58, 6 November 2011 (UTC)
Ones' complement → One's complement – The spelling issue merits broader discussion. Keep WP:COMMONNAME in mind. --Cybercobra (talk) 09:40, 5 November 2011 (UTC)
- Datapoint GScholar: Singular possessive (~3,580) vs. Plural (~1,720) --Cybercobra (talk) 09:44, 5 November 2011 (UTC)
- And if you actually look at the plurals the apostrophe was ignored in most of them so it actually found "ones complement" Dmcq (talk) 10:01, 5 November 2011 (UTC)
- The above discussion is preserved as an archive of a requested move. Please do not modify it. Subsequent comments should be made in a new section on this talk page. No further edits should be made to this section.
Complementing Subtractor
Hello,
is it possible for the author to clarify what do you mean by, and quoting, "A complementing subtractor will produce −0 only when both operands are −0."? My question is beause, for me, based on the example of the four subtractions operations on +0 and -0, the result -0 only takes place when operand 1 is +0 (0000 0000) and operand 2 is -0 (1111 1111), and not when both operands are -0 (1111 1111).
Thank you very much for you time.
Best regards,
LuisFilipeM (talk) 16:24, 26 August 2012 (UTC)
- The usual explanation for complement arithmetic (radix or digit) is that you do subtraction by adding the complement. That is, you build an adder in the appropriate radix, then complement one of the operands. At least in the ones' complement case, it is about as easy to build a subtractor, and do addition adding the complement. If you do that, you can arrange things such that with no operands of -0, you never get a -0 out. (That is, without special recomplementing logic, which is sometimes used.). Note also that one way to build a sign-magnitude machine is to convert to/from ones' complement with appropriate XOR logic. Gah4 (talk) 21:43, 6 November 2018 (UTC)
digit complement
Should there be a general article on the radix independent digit complement system? That is, nines' complement for decimal values, and (radix-1) complement for any other radix? Many seem to redirect to "method of complements", but I am not so sure that is best. Gah4 (talk) 21:23, 14 September 2018 (UTC)
testing
The article says that one must test in software for -0 to equal +0. As well as I know, all ones' complement computers either do this in hardware, or, as one section shows, use subtraction logic to avoid -0. Specifically, with the appropriate logic, and no operands of -0, the result will not be -0. It would be nice to know which machines do it which way. This will complicate some C programs that test bit patterns. Gah4 (talk) 06:18, 14 April 2019 (UTC)
Modulo
Could someone add some cross-referencing information about the relations of one's complement and two's complement to the underlying mathematical concept of ?modulo arithmetic. I remember reading something about 2's complement being a pure form of this, but 1's complement being a slightly offset/modified form of this. Thanks. — Preceding unsigned comment added by 80.189.81.65 (talk) 23:17, 23 October 2019 (UTC)
- N bit two's complement is modulo (if you ignore the sign), and ones' complement is module . I don't know about pure or not pure. (For extra fun, check out C compilers on ones' complement machines.) Gah4 (talk) 08:58, 25 October 2019 (UTC)