i need to concatenate a varchar field with a float field. for that i need to convert the float field to varchar using cast as follows
select rtrim(sgln_description) + cast (round(sgln_blockamt,3) as varchar(30)) from table1
this works fine but when the values stored in float are very large, for eg:-
1000000000000.0 and 999999999999.0 are converted to 1e+011 when i use cast.
i need it to be exactly what is given in the float field without any exponential notation. i tried removing the round function but still the result is not different. can anyone please help me get the concatenated string without any change in the number?
select rtrim(sgln_description) + cast (round(sgln_blockamt,3) as varchar(30)) from table1
this works fine but when the values stored in float are very large, for eg:-
1000000000000.0 and 999999999999.0 are converted to 1e+011 when i use cast.
i need it to be exactly what is given in the float field without any exponential notation. i tried removing the round function but still the result is not different. can anyone please help me get the concatenated string without any change in the number?