Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's wrong with VFP 5.0a's math (or is it me)?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00032141
Message ID:
00032196
Views:
40
>>Jeff,
>>
>>If I create a CURSOR with data types of currency and numeric and put 218.18 in each of them, when I multiply by the numeric I get the right anwser and by the currency I get the incorrect (truncated, rounded?) answer.
>>
>>I suspect it has something to do with the decimal data type. What does debugger say about TYPE() for this field?
>>
>>Randy
>
>I can't figure out how to use debugger to check the type() of a field.
>
>This is getting scary. How can I be sure VFP is returning the correct results?!? I searched the knowledge base and found an article entitled:
>
>PRB: Incorrect Evaluation of Equation with Variables (Q164359)
>
>The symptom is listed as:
>
>In Visual FoxPro 5.0, an equation that contains variables may not be evaluated correctly.
>
>I wonder what the heck that means. It sounds like my problem. But is the article saying that all equations with variables might give the wrong answer? Sounds like one hell of a bug!
>
>
Jeff

In Watch window, enter TYPE( ""), or you can check this at Command Window.

Randy
Previous
Reply
Map
View

Click here to load this message in the networking platform