set decimals to 18 set fixed on ? {^2003-01-01 00:00:00} - {^2003-01-01 00:00:01} ? {^2003-01-01 00:00:01} - {^2003-01-01 00:00:00} set fixed off ? {^2003-01-01 00:00:00} - {^2003-01-01 00:00:01} ? {^2003-01-01 00:00:01} - {^2003-01-01 00:00:00}The same result occurs in VFP6SP5, VFP7SP1 and VFP8SP1 so I'd have to believe that this is by design, and probably one of the reasongs that SET FIXED defaults to OFF
>CLEAR >SET DECIMALS TO 18 && you can put any valid values >SET FIXED ON && you can put ON/OFF >lnDiff = {^2000-03-20 11:31:00} - {^2000-03-20 10:25:00} >zz=3959.999965131283 > >* variables are equal >? m.lnDiff=m.zz , VARTYPE(m.lnDiff,.T.)=VARTYPE(m.zz,.T.) >* this return .T.,.T. > >* same deterministic function INT(), >* with same input value return different result !!! >? INT(m.lnDiff)=INT(m.zz) >* this return .F. >