Talk:Bitwise operations: Difference between revisions

From Rosetta Code
Content added Content deleted
No edit summary
(→‎assumption of how integers are stored=: added observation. == ~~~~)
Line 1: Line 1:
Shifts have now been added to the task. Please check your languages to make sure they have shifting properly implemented. --[[User:Mwn3d|Mwn3d]] 17:11, 19 May 2008 (MDT)
Shifts have now been added to the task. Please check your languages to make sure they have shifting properly implemented. --[[User:Mwn3d|Mwn3d]] 17:11, 19 May 2008 (MDT)


== assumption of how integers are stored===
== assumption of how integers are stored==

Since the task is more-or-less bit orientated, the assumption is that integers are stored in binary form (that is, bits).
<br>This isn't the case for all languages, or for that matter, all computers.
<br>There exist decimal computers (albet, no
longer being built, but a few are still running). I don't mean computers that HANDLE decimal numbers, but RUN in
decimal.
<br>The REXX language stores all it's variables in character form. REXX does allow the programmer to "get to" the
(actual) binary value of the characters (which may be a representation of an integer, or some other number), but the
binary bits would be different on an ASCII machine vs. an EBCDIC machine. -- [[User:Gerard Schildberger|Gerard Schildberger]] 23:35, 22 March 2012 (UTC)

Revision as of 23:35, 22 March 2012

Shifts have now been added to the task. Please check your languages to make sure they have shifting properly implemented. --Mwn3d 17:11, 19 May 2008 (MDT)

assumption of how integers are stored

Since the task is more-or-less bit orientated, the assumption is that integers are stored in binary form (that is, bits).
This isn't the case for all languages, or for that matter, all computers.
There exist decimal computers (albet, no longer being built, but a few are still running). I don't mean computers that HANDLE decimal numbers, but RUN in decimal.
The REXX language stores all it's variables in character form. REXX does allow the programmer to "get to" the (actual) binary value of the characters (which may be a representation of an integer, or some other number), but the binary bits would be different on an ASCII machine vs. an EBCDIC machine. -- Gerard Schildberger 23:35, 22 March 2012 (UTC)