ahmet_sinav
Programmer
hi all;
i am using firebird 2.5, fibplus and delphi xe2 (updated) on windows7 64 bit.
returns extHKS = 1;
At db dYMBP['HKS_PUANI'].AsFloat value is 0.96 and HKS_PUANI field is numeric(2,2). if i change the 0.96 value to 0.95 at db and code its working.
returns extHKS = 1.05;
after these i changed the 0.95 value 0.96 at db and code and when i try the below code its working
returns extHKS = 1.05;
if i compare the value with variant its working.
that code is working too
what the problem? i try above codes at another machines. is debugger error or am i making something wrong?
Best Regards;
i am using firebird 2.5, fibplus and delphi xe2 (updated) on windows7 64 bit.
Code:
if dYMBP['HKS_PUANI'].AsFloat >= 0.96 then
extHKS := 1.05
else
extHKS := 1;
At db dYMBP['HKS_PUANI'].AsFloat value is 0.96 and HKS_PUANI field is numeric(2,2). if i change the 0.96 value to 0.95 at db and code its working.
Code:
if dYMBP['HKS_PUANI'].AsFloat >= 0.95 then
extHKS := 1.05
else
extHKS := 1;
after these i changed the 0.95 value 0.96 at db and code and when i try the below code its working
Code:
extDeg = 0.96
if dYMBP['HKS_PUANI'].AsFloat >= extDeg then
extHKS := 1.05
else
extHKS := 1;
if i compare the value with variant its working.
that code is working too
Code:
if math.CompareValue(dYMBP['HKS_PUANI'].AsFloat,0.96) in [0,1] then
extHKS := 1.05
what the problem? i try above codes at another machines. is debugger error or am i making something wrong?
Best Regards;