>In a report I need to print numbers with only the relevant decimals. 100.001 should print the same but 100.000 should only print as 100. Is there an easy way to do this or do I need to program this?
VFP9 only
RTRIM(RTRIM(TRANSFORM(1000.000, "999,999.999"), "0"), ".")
--sb--