看板 Fortran 關於我們 聯絡資訊
版上高手們好 由於這學期開始 作業需要 而開始了 我的fortran 之旅 在咕狗大神那邊 參拜了好幾天 知道了有很多類似 或者相同的東西 最後由於 課本上市 fortran 95 所以同學都下載了 fortran 95 可是 我看到的資料 (因為同時需要寫作 c/c++ 所以我選擇了MinGW g77) 我知道會因為 編譯器的不同 而有不同 那 想問一下版上得大大 關於以下幾個問題 一 如果我要舉例 解說有關 real ,double precision 我該怎麼舉例會比較好(老師的意思好像要利用下表 的函數 跟 ieee 754 比較) 表 =================我參考的表格============================================ | Generic Intrinsic Name | Description | |--------------------------|--------------------------------------------| | DIGITS (X) | Number of significant digits of the model | |--------------------------|--------------------------------------------| | EPSILON (X) | Number that is almost negligible compared | | | to one | |--------------------------|--------------------------------------------| | HUGE (X) | Largest number of the model | |--------------------------|--------------------------------------------| | MAXEXPONENT (X) | Maximum exponent of the model | |--------------------------|--------------------------------------------| | MINEXPONENT (X) | Minimum exponent of the model | |--------------------------|--------------------------------------------| | PRECISION (X) | Decimal precision | |--------------------------|--------------------------------------------| | RADIX (X) | Base of the model | |--------------------------|--------------------------------------------| | RANGE (X) | Decimal exponent range | |--------------------------|--------------------------------------------| | TINY (X) | Smallest positive number of the model | ========================================================================= 老師的題目是說 把我做出來的兩個 或三個有關的程式 跟上面的列表作比較是不是跟 IEEE754相同 可以給幾個稍微簡單的範例嗎????? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.118.229.224
Gwaewluin:你各宣告兩個變數去儲存同一個小數,比對精確位數好了 04/17 23:21