Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Truncate decimal zeros
Message
From
30/09/2008 14:46:58
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01351210
Message ID:
01351885
Views:
15
It works. Thanks.

>Hi Don,
>
>Try this:
>
>
>TRIM(TRIM(PADL(MyNumericField,16),0,"0"),0,".")
>
>
>>I think there is a way to do this but I'm not sure. Suppose you have a number field defined with 2 decimals. You want to print it in a report but truncate any trailing zeros (and the decimal point if both are zero). Is there a formatting technique that would do this?
Previous
Reply
Map
View

Click here to load this message in the networking platform