小雞飯 wrote:
在人類大腦看來是bug
在程式邏輯來看是正常

廣義來說是bug沒錯
因為對小算盤來說浮點數誤差不該呈現在人類眼前


以 數學 算式 是 0,
但 電腦 算 不是 0,
這就是 Bug.
systemctl
雖然邏輯運算是對的,只是呈現方式不對,對消費者來說確實就是個bug沒錯
樓主可以試試看在 GW-BASIC 計算 0.1 + 0.2 看看嗎?
我有點好奇結果
ren1244 wrote:
樓主可以試試看在 GW-BASIC 計算 0.1 + 0.2 看看嗎?
我有點好奇結果




ren1244
感謝測試
小雞飯
cmd的set沒辦法給非整數,要運算的整個式子也只能是整數,不只是11,每一代都這樣吧
小雞飯 wrote:
cmd的set沒辦法給非整數,要運算的整個式子也只能是整數,不只是11,每一代都這樣吧


文字 發不出去,
我 猜 有啥文字 卡住了,
改為 貼圖.

hunandy14
原來一間公司有沒有成長,要看他有沒有把計算機做好,長知識了。
Avatars wrote:
CMD跟其他傳統桌面應用程式一樣,早就被微軟放生了。
CMD被PowerShell取代PowerShell 將取代命令提示字元

Windows 10 家用版、專業版 早就把傳統桌面版小算盤刪掉了,只剩企業版跟LTSB有保留。
想在 Win 10 上跑前版的小算盤


文字 發不出去,
我 猜 有啥文字 卡住了,
改為 貼圖.





其實 64 位元環境的 int 的長度一樣是 32 bits
要容納更大的整數就要改成 long long
Stallings wrote:
其實 64 位元環境的 int 的長度一樣是 32 bits
要容納更大的整數就要改成 long long


看來你不懂 我在說啥.
Stallings
是的,我沒看討論,只是路過而已
IQuit wrote:
文字 發不出去,我 ...(恕刪)


你為什麼會覺得開源就不是微軟的?
PowerShell Governance
  • Corporation: The Corporation owns the PowerShell repository and, under extreme circumstances, reserves the right to dissolve or reform the PowerShell Committee, the Project Leads, and the Corporate Maintainer. The Corporation for PowerShell is Microsoft.
Avatars wrote:
你為什麼會覺得開源就不是微軟的?
PowerShell Governance
Corporation: The Corporation owns the PowerShell repository and, under extreme circumstances, reserves the right to dissolve or reform the PowerShell Committee, the Project Leads, and the Corporate Maintainer. The Corporation for PowerShell is Microsoft.


感謝指教.

確實 PowerShell 都是 MS 的,
但我前面也說到 放生,
我認為 MS 只是 掛個名,
實務 也都是 成員們 在搞,
成員們 也不全部是 MS 員工,
而是些有專業或貢獻者,
MS 仍握有 最後一根稻草權.
hunandy14
github並不是隨便誰往上推代碼就可以被推上去的,主線合併要審核的阿,該往哪個方向走依然是微軟控制的。
關閉廣告
文章分享
評分
評分
複製連結

今日熱門文章 網友點擊推薦!