看板 Fortran 關於我們 聯絡資訊
這個指令已經救了很多 博班,碩班的同學, 大就是 implicit none 規定所有的變數在使用之前都要宣告, 這是一個好的程式設計習慣, 你用看看,肯定你會 感動的 痛哭流涕。 你 debug 了好久都找不到的 bug, 竟然探N 因為加了 這個指令,就 一下子就 找到了。 !dec$if (.false.) Hello World 0.6666666865348815917969 Press any key to continue !dec$endif ! real 的精確度 只有七位 program VF0910 implicit none real a, b, c a= 2.0 b= 3.0 c= a/b print *, 'Hello World' write(*, '(1x, F25.22)')c end program VF0910 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 118.231.141.7
lerudit:這不是常識嗎? 09/10 13:55
sjgau:問題是:還是有很多人不知道,或是 知道了,嫌麻煩。 09/11 10:11
sjgau:酒後不開車,這也是常識啊 09/11 10:11
sjgau:十次車禍九次快,這也是常識啊 09/11 10:11
neidhart:NASA/GSFC climate branch也強制使用,很重要! 11/22 02:36