Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple math problem
Message
 
 
To
16/05/2006 09:58:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01122177
Message ID:
01122232
Views:
22
>>>
>>>? INT(VAL(RTRIM(TRANSFORM(140400),"0")))
>>>
>>>>
>>Ok, the requirements are to remove trailing zeros. In other words, for
>>0015000 we need 0015, not 15.
>>
>>Thanks in advance.
>
>like this ?
>
>
>?padr(left('0015000', len(rtrim(strtran('0015000', '0', ' ')))), 15)
>
Ok.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform