Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

not getting the expected value after type conversion 1

Status
Not open for further replies.

saran26

Programmer
May 20, 2008
173
0
0
US
Hi All,

I have a short string field in my table and i converted the values in number using the to number function and then try to get the value as int.

int(tonumber({ClearQuest.fldcolumn_2}))

I am always getting the value with two decimal points.

example

I am getting "1.00' instead "1", why it is ? any help will be appreciated?

Thanks
Saran
 
That is the default number format. Right click on the formula->format field->number and select: -1123.

-LB
 
Thanks LB.

I have another question.

I have group by field in the crystal report Chart.

How to change the format of those fields?, Please let me know. If you require, I will submit a new message.

Thanks
Saran
 
You should always start a new thread for a new topic, such as this. In your new thread, you should provide more information, e.g., what is the datatype of the on change of field? How does it currently appear? How do you want it to appear?

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top