作者pqman (who want some?)
看板Perl
標題[問題] 請問將科學記號轉小數的方法~
時間Thu May 8 17:05:36 2008
我的data中有4.189e-12 or 3.8e-13這種科學符號
請問有方法可以將他們改成小數嗎 (ex 0.00000000004189)
謝謝︿︿
--
◢ █
● █
█◥█ ◢
◢◣█ ◢●╯ ◣◢ ◣
███ ● ╯◤ ◢ ╮
▇▆◣ ◢▌ █ ◢◣│
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.113.170.178
→ liyih:如果只是顯示的話,用 printf 或 sprintf,如 "%.15f" 05/08 17:15
→ pqman:我想把data內容改掉耶 因為tool好像讀不到e-12...之類的>< 05/08 17:21
推 LiloHuang:用大數模組運算 當作字串來處理 05/08 18:52
→ pqman:謝謝一,三樓的大大 05/09 16:12