Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prevent VFP from rounding up numeric fields
Message
 
To
26/08/2002 15:44:19
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00693785
Message ID:
00693919
Views:
18
>>I have a table with several numeric fields that require
>>9 decimal places, how do I prevent VFp form rounding up
>>numbers?
>Have you tried the Double data type?

Note: you can force memory variables to Double by multiplying them by 1.0 stored in a Double field.
CREATE CURSOR forceDbl (bDbl B(9))
INSERT INTO forceDbl VALUES (1)
lnDouble = 1.0000000000023 * forceDbl.bDbl  && Contrived, but you get the idea
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Reply
Map
View

Click here to load this message in the networking platform