Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question about $ and VAL()
Message
 
 
To
25/12/2016 11:57:09
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01646061
Message ID:
01646064
Views:
69
Thank you... easy enough.

>>Anyone know the best way to get:
>>
>>? VAL("3,000.99")
>>
>>which returns a numeric 3.00
>>
>>to return a numeric 3000.99 (or even 3,000.99) ?
>>
>>I am needing to replace thousands of character numbers found in a character type field to numeric fields.
>>
>>Thanks in advance...
>
>You will need to strip out all characters except numbers and the period and then use this:
>cast("4000.999" as n(13,4))
Previous
Reply
Map
View

Click here to load this message in the networking platform