General information
Title:
Rounding up data that is converted to text
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only