Double value divison error


2005-02-28 08:51:04 PM
cppbuilder40
Hi!I am getting wrong result when deviding two double values.
-------------------------------
Qr->FieldByName(V3)->AsFloat=Qr->FieldByName(V2)->AsFloat/Qr->FieldByName(V1)->AsFloat;
-------------------------------
Where Fields V3,V2,V1 are of type decimal,MS SQL Server 7.0.
Especially if the values are V2 = 1340 and V1=1,34.
if i devide this values a get result V3=900.
900 = 1340/1,34 .
Any idea ? Thanks.
Using BCB 5.