Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Floating point and remote views
Message
From
21/07/2011 10:07:46
 
 
To
21/07/2011 10:03:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01518756
Message ID:
01518762
Views:
48
>>I am hoping some of the serious math wonks will take pity on an old man who still finds long division challenging.
>>
>>I have SQL database tables that make heavy use of floating point numbers.
>>
>>In my remote view, I am pulling half a dozen of those numbers. The remote view defines them as data type 'B' ( of which I have not previous experience)
>>
>>I need to multiply those number together, then put the result in a field I created as part of the remote view ( casting a 0 as float )
>>
>>But in the watch window these values all show up as N , even though the values can look like 140333030.002033021000
>
>One key point is that variables don't have the same range of data types as fields. So if you copy a float or double to a variable, Locals and Watch will show it as N.
>
>Tamar

So if I have a cursor field with a FP number, if I multiply it by the value of another field and store it in a field, never going through a variable, I should be ok?


Charles Hankey

Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy

Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.

-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin

Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.
Previous
Reply
Map
View

Click here to load this message in the networking platform