float roundto error numeric field
Posted: 09.01.2008, 15:51
field type numeric(18,4)
804533,289*
1994726,37=1604823767111,1298
zquery1.FieldByName('xx').AsFloat:=roundto(1604823767111,1298 ,-2);
1604823767111,1200
database commit after
1604823767111,1298
simpleroundto ,roundto,asnumeric
not ok;
found number test ed prg
1626800,4045
1551543,33=2524051316843,2796
1380010,7691*
474565,36=654905307441,8102
554270,3802*
1230910,93=682257469163,435586
1758713,9*
1626094,61=2859835193322,079
1380010,7691
474565,36=654905307441,8102
792037,798*
520022,12=411877174836,0901
804533,289*
1994726,37=1604823767111,1298
zquery1.FieldByName('xx').AsFloat:=roundto(1604823767111,1298 ,-2);
1604823767111,1200
database commit after
1604823767111,1298
simpleroundto ,roundto,asnumeric
not ok;
found number test ed prg
1626800,4045
1551543,33=2524051316843,2796
1380010,7691*
474565,36=654905307441,8102
554270,3802*
1230910,93=682257469163,435586
1758713,9*
1626094,61=2859835193322,079
1380010,7691
474565,36=654905307441,8102
792037,798*
520022,12=411877174836,0901