[問卦] 為什麼32767+1=-1?
現在十進位的文章好像蠻火的,
阿肥剛好有個問題想問,
明明input 32767,
output 32767。
但是32767+1,
input 32768,
output 卻是-1。
很懂6+6=12的聰明肥宅,
可以幫阿肥回答為什麼會這樣嗎?
有沒有相關的八卦?
--
※ PTT 留言評論
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.200.169.221 (臺灣)
※ PTT 網址
→
因為overflow了
噓
你換成二進位就知道了
推
因為你殺了一個白人
→
嘻嘻 A=A+1
噓
65535
→
帶符號的WORD就是這樣啊
→
快把記憶體插滿(誤
推
你可以換用unsigned
推
因為你正義滿了
→
這是宇宙參數
推
因為從 0 開始到 32767 有 32768 啊
→
你說的 32768 實際是 32769
→
th
推
去改金手指
噓
溢位
推
8位元不夠用
推
世界上有10種人
→
我這邊是65535+1=0
噓
255
噓
怎麼做到-1的我也想知道
推
=0
推
52149
噓
自己的作業 自己寫
推
確定是-1嗎
推
用long就不會了
推
2's complement
10
Re: [問題] 前級音量,主動式喇叭輸入阻抗請益?阻抗跟放不放大沒關係,跟電路特性(真空管也較高)或輸出入的 buffer 電路有關 一般希望輸出阻抗低、輸入阻抗高,這樣前級輸出的信號才會比較好的傳送到後級輸入 3.3 Output Port Connections Connect the output amplifier input to your Passive Preamplifier output, to the corresponding RCA (Red and White Ports)/XLR. Since7
[問題] 耳擴連接問題請問要怎麼看聲音有沒有經過前面那台管擴輸出(我是接input接到M11的3.5mm但覺得聲音差 ----- Sent from JPTT on my Samsung SM-N960F.6
Re: [請益] USB DAC的訊號來源, iOS或Windows, 誰好?43~ 應該沒有繞過 因為 VB-CABLE 是虛擬 Audio Device=虛擬 H/W,VB-CABLE 本身是 Driver 而 Audio engine 乃是在 Driver & Device 的前面- 各位安安 本魯失業學店魯蛇 勤益科技大學 大家玩過天堂嗎? 聽說正義值達32767 ID會變很藍 而且死了不太會噴裝備 可是32767很容易達到 天堂怎麼不調高一點?
4
[問題] 主動式喇叭搭配重低音接法目前我是用主動式的喇叭 有RCA跟XLR的input 但因為我的DAC跟前級都只有各一組的RCA 所以我的線材都是接RCA 然後目前覺得重低音不足想要補一顆進來 預算大約一萬左右 所以不會買太高級的 想請問哪種接法比較好 1.找有input及output的重低音,前級output接重低音,喇叭接重低音output3
[求助] 請問這個介面在螢幕上是input還是output?買了台acer xv272kv uv 請問這個在螢幕上是input 還是output? 跟音訊有關係嗎?? 我查了一下是usb type b的介面- 一樣的input得到一樣的output是理所當然的事 A提供資料給B寫論文 A的論文也是使用相同的資料 所以A、B論文長得幾乎一樣也是很合理的吧 完全沒有抄襲的疑慮 大家說對不對 --
1
[求助] Thunderbolt input/output我的LCD是聯想P32u-10 有兩個Thunderbolt port 一個input 一個output 我想用這個port連線到筆電 雙螢幕輸出與使用連結到螢幕usb hub上的裝置X
Re: [問卦] 吃什麼拉什麼怎辦小妹我台大IU 文組小妹 根據質量守恆定律 吃什麼就拉什麼 Input X , Output X- 有沒有可以把人臉照片input,例如女同事的照片 會output出最像哪演員的軟體,例如日本動作片演員 我很好奇!! --
爆
[問卦] 有沒有感覺兩岸真的會有戰事了爆
[問卦] 慟!!! 八卦人氣 3593爆
[問卦] 下星期五了!1500萬的金流噴出來了嗎?86
[爆卦] 科學家首次做出單電子共價鍵49
[問卦] 陳致遠:原來你那麼相信台灣的司法喔!我64
[爆卦] 《哈利波特》麥教授Maggie Smith辭世71
[問卦] 夜市牛排一客80塊 吃過的人都幾歲了?52
[問卦] 台海開戰 你會衝第一個殺共匪嗎46
[問卦] 這幾晚PTT是三小?40
[問卦] 修蛋雞勒!40萬兵源不包含7年級惹吧^_^34
[問卦] 包手師傅把雞腿排煎焦了……35
[問卦] 川普認定俄國「會贏喔」!諷澤倫斯基是34
[問卦] 韓國人: 台灣的新房子壓迫感好重28
[問卦] 看到啦啦隊比基尼寫真 會選下面那位?31
[爆卦] 印尼輪姦少女致死的加害者父母不認錯28
[問卦] 日本人:日本這次完了25
[問卦] 為什麼莫彩曦公公這麼有錢還是自己保養車26
[問卦] 震驚! 鄭中基竟然是新竹人!!!26
[問卦] 40歲沒車子沒房子 是不是很丟臉?24
[問卦] 為什麼古人都喜歡身材比較豐腴的女生??16
[問卦] 現在連日本人都覺得台灣是詐騙國嗎?17
[問卦] 絕命毒師神在哪?18
[問卦] 南部人丹丹都點幾號?17
[問卦] 台北的公車司機素質是不是真的比較高19
[問卦] 石破茂會石破天驚拳嗎18
[問卦] 想辭職開便當店19
[問卦] 派出所突然打電話來 可能有什麼事情啊?15
[問卦] 預算三百萬台幣要買哪一台車?12
[問卦] 該如何讓女性朋友停止深夜三小時的訴苦?15
[問卦] 為何新北市一堆地方叫海山