Skip to Content
0
Former Member
Nov 07, 2007 at 09:58 AM

decimal rounding off problem

43 Views

hi all,

i am having an structure, whoes one field is of decimal type with 2 as the decimal place, after the calculation the value in the field is like F1 = 333.34,

but i want the field should contain the value as F1 = 333.366666666

but it is rounding the decimal values,

and if i change the decimal place form 2 to some higher value like 4 or 5 then program gives a short dump,

can some please suggest the solution for this problem,

thanks in advance,