Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug? in VAL on Currency strings
Message
From
27/06/2000 10:01:33
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvania, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00384678
Message ID:
00385030
Views:
30
>x = '$20,650.000000000000000000'
>x3 = Substr(x1,1,at('.',x1)+4) && gives '$20650.0000'

Is there any reason to start with 18 decimal places?

Even in an engineering application, most equipment is incapable of measuring much beyond 8 decimal places. In a currency application, 4 decimal places should be sufficient to calculate the amount of money added to my check after this last salary increase. ;)

Anyway, that's just my $0.020000000000000000 worth.
Previous
Reply
Map
View

Click here to load this message in the networking platform