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!

convert exponential value to string

Status
Not open for further replies.

JenJohnson

Programmer
Nov 3, 2003
15
0
0
US
I have a table with a float column, and one value in this column is
Code:
"0.000098940869229982722"
.

When I try to convert this value to a string, I get
Code:
"9.8940869229982722e-005"
.

I don't want to see the exponential notation, but I do want to see all the decimal places. I tried using the
Code:
exp
Sybase function, but (obviously) didn't retain the exact decimal places.

Any help would be greatly appreciated!
Thanks,
Jennifer
 
Hi,
How are you converting the values?
Are you using CONVERT?

I tried with convert and the result was

.000098940869229982722

Without the starting zero, so use String('0',column).
Also if I use float, the values changes, I had to use double, I'm not sure, I guess it's because of the engine version of sybase.

Hope this helps,
David.

 
It did help (sorry for the delayed response).
Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top