Jump to content

Talk:Binary-coded decimal

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by ClueBot III (talk | contribs) at 00:03, 8 November 2021 (Archiving 1 discussion to Talk:Binary-coded decimal/Archives/2021/July. (BOT)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.


clock

I have a commercially produced clock that displays BCD time in the manner shown in the diagram, with six vertical BCD digits. It also has the ability, given the same LED arrangement, to give binary hours, minutes, and seconds horizontally. Interesting how, given that arrangement, 5 bits are available for hours (24 hour mode), and six each for minutes and seconds. I got mine used, so I don't know where they come from. Gah4 (talk) 16:59, 1 June 2020 (UTC)[reply]

implemented in all IBM mainframe hardware since then

The article says: implemented in all IBM mainframe hardware since then. For low-end S/360 models, decimal was optional. (As was floating point. Presumably one would get one or the other.) Also, the 360/91 doesn't have the decimal instructions, with the OS doing software emulation. (It has CVB and CVD, which are used in the emulation.) Gah4 (talk) 11:39, 6 August 2020 (UTC)[reply]

Rounding

The "Advantages" section says:

  • Addition and subtraction in decimal do not require rounding.

I am not sure what this is supposed to mean. If you're adding or subtracting two fixed-point numbers of the same precision, no rounding is required in any base. Though of course there's the possibility of overflow. If on the other hand you're adding or subtracting two floating-point numbers of the same precision, you need to round. For example, 2.3e0 + 5.1e-2 in decimal floating point should yield the rounded result 2.4e0. I will tag this point with dubious to encourage discussion. --Macrakis (talk) 19:02, 7 November 2021 (UTC)[reply]