For faster navigation, this Iframe is preloading the Wikiwand page for 二進制.

二進制

明同暗為二進制表示方式,數字則常用一同〇

二進制係逢2進位嘅進位制,只係用到01兩個數字記數,主要係電腦用。

運算

[編輯]

四則運算

[編輯]

喺二進制入面做四則運算其實同平時冇乜分別,照樣做返進位、退位就得:

  • 加法:0+0=0,0+1=1,1+0=1,1+1=10
  • 減法:0-0=0,1-0=1,1-1=0,10-1=1
  • 乘法:0×0=0,0×1=0,1×0=0,1×1=1
  • 除法:0÷1=0,1÷1=1

不過用二進制寫小數就好麻煩,十進制嘅0.2用二進制寫係0.00110,會用更多位。

拈加法

[編輯]

二進制入面有種特別嘅運算,叫做拈加法,好似平時做加法咁,但係唔使進位,喺博弈論入面會用到。

相關

[編輯]
{{bottomLinkPreText}} {{bottomLinkText}}
二進制
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?