v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Editing User talk:BaronW

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.


The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 38: Line 38:
  
 
:For subtraction... it becomes much easier if you pick the right way to represent a negative number. If you have the largest bit of a number represent the sign, you can then add as normal and exploit the rollover. So to subtract B from A you just need to flip B's sign bit and add. [[User:VengefulDonut|VengefulDonut]] 03:40, 15 April 2010 (UTC)
 
:For subtraction... it becomes much easier if you pick the right way to represent a negative number. If you have the largest bit of a number represent the sign, you can then add as normal and exploit the rollover. So to subtract B from A you just need to flip B's sign bit and add. [[User:VengefulDonut|VengefulDonut]] 03:40, 15 April 2010 (UTC)
 
::You can use 2 bits complement binary representation for substraction (and general computation) you'd only go from 499 to -500 for input digits but it really simplifies adding/substraction (basically both are the same only the sign of the second number would have to be changed (this would allow for substracting negative numbers (thus adding them). And this is also how microprocessors in real computers (not computers made inside games ran on computers) work :P [http://en.wikipedia.org/wiki/Two%27s_complement 2's complement wikipedia]
 
  
 
== Awesome ==
 
== Awesome ==

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Please sign comments with ~~~~

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)

Template used on this page: