I think you're right -- you have to test whether there is a
fractional part. I'm not sure what calculation you are doing. If it's
division, you could do something like this:
if Num1 mod num2 = 0 then
editfield1.text=format(num1/num2,"#")
else
editfield1.text=format(num1/num2,"#.##")
end if
On Jan 20, 2006, at 12:55 AM, Barrie Jones wrote:
John, many thanks. My numbers can be both decimal and integer so I
use a format string "########.##" but integer numbers are displayed
with a decimal point at the end. Do I have to manually remove the
point? That seems a bit crude.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>