Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with Float Field
Message
From
29/02/2000 23:36:01
 
 
To
29/02/2000 22:49:42
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00339448
Message ID:
00339600
Views:
17
>This if off-the-wall, but try SET DECIMALS TO 4. Might work.
>

Another approach would be to add 000000000000.0000 to the number to force a format on the field, or use NTOM() to force a currency field.

>>I have a table with a Float field. When I execute the SQL in FoxPro the cursor contains only 2 decimal points (it seems it is rounded)
>>Now, I have tried in Microsoft SQL and this does not happens. It comes as it is with 4 decimal places.
>>Is FoxPro rounding when retrieves the data?
>>How can I fix this problem?
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform