Re: [問題] 匯出數據值太小

看板Mathematica作者 (養花種魚數月亮賞星星)時間11年前 (2013/02/01 16:11), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
※ 引述《xnicky2000 (愛談低調的地瓜)》之銘言: : Iy = OpenWrite[ "AK12.txt", FormatType -> OutputForm ] ; : Table[ \[Theta] = Et[[1, n]] ; : k = Et[[2, n]] ; \[Xi] = Et[[3, n]] ; : Write[ Iy , N[ \[Theta], 50] , " ", N[ k, 50] , : " ", N[ \[Xi], 50] ], : {n, 1, N1*16} ] ; : Close[Iy]; : 我會出數據是用這樣寫 : 但是其中一項的值有時候太小 : 會變成用科學符號表示 如 1.258*10^-6 : 可是會出數據時排序會亂掉 : 想問能不能不要變成科學符號表示 直接用0.0000001258 test = 0.0000001258; test ToString@NumberForm[test, {11, 10}, (*11位,小數10位*) ExponentFunction -> (If[-Infinity < # < Infinity, Null, #] &)] -- 養花種魚數月亮賞星星 http://chungyuandye.twbbs.org -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.173.134.199
文章代碼(AID): #1H2tZ2U0 (Mathematica)
文章代碼(AID): #1H2tZ2U0 (Mathematica)