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