MTHREE = 0. P = ((MTWO * P + MTHREE) / (MONE + DENOM)) / DENOM I have also written the equivalent code in C#. REAL*8 P(10), T(10) REAL*8 ONE, TWO REAL*8 DENOM, MONE, MTWO, MTHREE 8 bytes.īut i found the difference when i wrote a simple program in FORTRAN and C# using double which does some calculation on values. I was also assuming the same as FORTRAN REAL and C# double both are similar precision i.e. If you want to have the compiler retain many digits in a constant, you must specific the precision of a constant.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |