[問題] 小數位數的設定
開發平台(Platform): c
額外使用到的函數庫(Library Used): no
問題(Question):如何將小數後的0去除
餵入的資料(Input):1. 12.3
2. 12.36
預期的正確結果(Expected Output): 12.3 12.36
錯誤結果(Wrong Output):12.300000 12.360000
程式碼Code:http://codepad.org/E7vzbJVE
補充說明(Supplement):
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 218.171.53.101
推
10/09 10:16, , 1F
10/09 10:16, 1F
→
10/09 10:17, , 2F
10/09 10:17, 2F
→
10/09 13:32, , 3F
10/09 13:32, 3F
→
10/09 17:06, , 4F
10/09 17:06, 4F
→
10/10 22:21, , 5F
10/10 22:21, 5F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章