Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql makes too many decimal places
Message
 
To
17/12/1999 12:06:36
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00305338
Message ID:
00305348
Views:
31
>My sql statment has calculations on numeric fields (two decimal places, eg, 6.2). The resulting calculated fields have too many decimal places (eg, 16.5).
>
>How can I keep them to 2 decimal places?
>
>Should I leave the data alone and truncate in the report? (ick)
>I tried SET FIXED ON, and the BROWSE looks lovely, but the report still prints all the decimal places.
>
>Thanks for stating the (not to me) obvious.

Sylvia, how does your SQL look like?
You could include ROUND() function (to certain number of decimal places)in your calculation expression, or include ROUND() in the report expression.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform