Reply from donbarclay on Apr 9 at 12:25 PM You can set the number to a string variable, and the rtrim the trailing zeros off. Let $Value = edit(#Number,'999,999,999.999999999') Let $Value = rtrim($Value,'0') and then print the string variable ($Value).
| | | ---------------Original Message--------------- From: guest Sent: Tuesday, April 03, 2012 7:10 AM Subject: Displaying Decimal Number in SQR The result of my sqr displays the decimal digit incorrectly. suppose i have a decimal data in my database as 111.54 it gets displayed as 111.539999994.How do i rectify it so as to make it show only those decimal digits displayed in my db. | | Reply to this email to post your response. __.____._ | _.____.__ |
No comments:
Post a Comment