Re: Rounding off double precision



For Fortran 77 define Floor as:
DINT(X)=X-DMOD(X,1.D0)
FLOOR(X)=DINT(X)-DMOD(2.D0+DSIGN(1.D0,X),3.D0)

What is DMOD and DINT, and how are they different from MOD and INT?
Thanks.

Btw, the problem has been solved. But I am looking at your suggestion
as it might lead to something better.
.



Relevant Pages

  • Re: Rounding off double precision
    ... -|What is DMOD and DINT, and how are they different from MOD and INT? ... These force Double Precision versions of MOD and AINT to be used. ...
    (comp.lang.fortran)
  • Re: [NEW!!] Binding together Properties of Objects
    ... Here is the test code, not very thorough, btw: ... int Getconst ...
    (comp.object)
  • RE: extracting mouse coordinate
    ... Btw, what you meant was AND bit operation, right? ... > The lparam of the message is an int which is 32bits. ... Because the API was limited to how many parameters ... > leaving the first short. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Variable array size allocation
    ... boki a écrit: ... > int size=10; ... Btw, you should learn to use the documentation that comes with your ...
    (microsoft.public.vc.language)
  • Re: [patch 7/8] fdmap v2 - implement sys_socket2
    ... Program Thread: Library Thread: ... int x = FD_CLOEXEC; ... BTW, regardless of anything else, in such situation this "library ...
    (Linux-Kernel)