作者LPH66 ((short)(-15074))
看板Programming
标题Re: [问题] C# 如何取得 double 型态的小数位数?
时间Sat May 10 00:54:09 2008
※ 引述《cuteman0725 (发呆)》之铭言:
: 结果读到 EXCEL 传回 51.0时,真正的 EXCEL 就显示 51.0,反而是在模拟的元件
: 上显示51,感觉就会比较怪。
OK 重点在"真正的 EXCEL 就显示51.0"这句话上
那个是excel在储存格里有设储存格格式为小数下一位
也就是说
你得要在你的元件中那个储存格里想办法存入"这一格要显示小数下一位"这件事
至於值当然还是存5.1e+1这个浮点数进去
这个弄好之後问题便回归成值的显示的问题
这个问题前面的文章已经有解答了
--
'Oh, Harry, dont't you
see?' Hermione breathed. 'If she could have done
one thing to make
absolutely sure that every single person in this school
will read your interview, it was
banning it!'
---'Harry Potter and the order of the phoenix', P513
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.30.84
※ 编辑: LPH66 来自: 140.112.30.84 (05/10 00:55)