cdbl in crystal reports is giving wrong results in decimal points -
friends,
this formula in crystal reports 9.
cdbl({nrconsolidated.collamt})/100000.000
nrconsolidated table having 9 records.
in 1 record's collamt value 154250.
but in crystal reports output showing 1.543 instead of 1.542. want 3 decimal points.i dont know mistake coming from? in crystal reports, clicked on collamt field , checked data seeing browsedata option...its showing 154250. how can solve issue? showing correct value in 4 decimal points want 3 decimal points.
thanks
the below code truncate result after calculation has been performed, , output 3 decimal places. works crystal syntax , should basic - believe common amongst both.
truncate(cdbl({nrconsolidated.collamt})/100000.000,3)
on field set decimals 1.000 , rounding 0.001 display want.
Comments
Post a Comment