看板 C_Sharp 關於我們 聯絡資訊
因為有需求要做位元運算取ieee的最後一個位元 想請問一下有方式轉嗎 有試過tostring. touint32 出來的數值都有問題 先感謝各位 -- Sent from my Android -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.125.20.231 ※ 文章網址: https://www.ptt.cc/bbs/C_Sharp/M.1443782044.A.B2F.html
tongzhou: int result = val & 0x1 10/03 09:21
h8012018: int 會把浮點小數省略掉吧? 還是我記錯 10/04 21:31
Litfal: BitConverter.GetBytes(d)[7] & 1 10/05 17:13