>CLEAR >SET DECIMALS TO 18 >SET FIXED OFF >lnDiff = {^2000-03-20 11:31:00} - {^2000-03-20 10:25:00}+0.0 >zz={^2000-03-20 11:31:00} - {^2000-03-20 10:25:00} + 0.00 >? INT(m.lnDiff)=INT(m.zz) >* this return .F. on VFP6/7/8 >>
&& vfp round(th_End - th_id, 0)
main( int argc, char* argv[]) { double xx, yy, zz; xx = 100000.00 +(11.0*3600.0+31.0*60.0)/86400.0 ; yy = 100000.00 +(10.0*3600.0+25.0*60.0)/86400.0 ; zz = (xx - yy) * 86400.0 ; printf("zz=%20.18f, eq=%d zz-3960.0=%20.18f\n", zz, (zz-3960.0)==0.00, zz-3960.0) ; return 0; }