Problem with Decimal values
Posted: Mon Sep 26, 2011 1:33 am
Dear Sir
I am using a firebird table which has lot of decimal type columns. In firebird the data is displayed properly i.e. 4.00 is displayed as 4.00 but in stimulsoft, 4.00 is displayed as 4. That created some unexpected problem for me . Actually i have a column height decimal(6,2) which stores heights of students in a school. The height is entered as 4.11 for some one having height of 4 feet and 11 inches. I tried to display it as 4'11" by first converting the decimal to string and replacing . with ' and appending the resulting string with a ". It went well for all the values except 4 and 5 which were printed as 4" and 5". That happened because stimulsoft treated 4.00 as 4 and 5.00 as 5. Is there any workaround ? I am not aware if it happens with other databases like sql server and mysql also.
Thanks in advance !!
Naveen Aggarwal
I am using a firebird table which has lot of decimal type columns. In firebird the data is displayed properly i.e. 4.00 is displayed as 4.00 but in stimulsoft, 4.00 is displayed as 4. That created some unexpected problem for me . Actually i have a column height decimal(6,2) which stores heights of students in a school. The height is entered as 4.11 for some one having height of 4 feet and 11 inches. I tried to display it as 4'11" by first converting the decimal to string and replacing . with ' and appending the resulting string with a ". It went well for all the values except 4 and 5 which were printed as 4" and 5". That happened because stimulsoft treated 4.00 as 4 and 5.00 as 5. Is there any workaround ? I am not aware if it happens with other databases like sql server and mysql also.
Thanks in advance !!
Naveen Aggarwal