Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rounding up data that is converted to text
Message
From
08/03/2004 14:51:41
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Crystal Reports
Title:
Rounding up data that is converted to text
Miscellaneous
Thread ID:
00884212
Message ID:
00884212
Views:
48
I have data that is generated from calculations that for some reason is significant to two decimal places and I can't get rid of the decimal part.

numbervar nAnswer := 0;
stringvar sResult := '':

nAnswer := 22/7;
sResult := CSTR(TRUNCATE(nAnswer,0);

doesn't work, nor does Round.
the result displays on the report as 3.14 instead of 3.

Thanks
Jim
Next
Reply
Map
View

Click here to load this message in the networking platform