FORTRAN floating point accuracy problems
|
05-03-2016, 12:47 PM
Post: #47
|
|||
|
|||
RE: FORTRAN floating point accuracy problems
(05-03-2016 11:54 AM)HP67 Wrote: Ok guys, I am almost back. Dieter, do you have an idea how to proceed now that we have your rounding function available? Using the rounding function you could try something like this: Code: Function dms2dd(dms) Here "safedigits" is the number of significant decimals we can consider exact. That's 15 for IEEE754 DP and 16 in your case. The algorithm essentially determines how many digits after the decimal point can be assumed exact (15 resp. 16 minus the number of digits of the integer part) and rounds the mm.ss part accordingly. Dieter |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)