Convert float value to varchar type in MS SQL Server

Use Str() in-built function

Select  Rtrim(Ltrim(Str( floatDataTypeValue, 20, 0)))

If you want to keep decimal values also then use syntax like

Select  Rtrim(Ltrim(Str( floatDataTypeValue, 20, 3)))
 

 

Related Alrticles

Add Your Business in Free Listing


FREE!!! Registration