About 521,000 results
Open links in new tab
  1. How to convert float to varchar in SQL Server - Stack Overflow

    Sep 15, 2010 · I have a float column with numbers of different length and I'm trying to convert them to varchar. Some values exceed bigint max size, so I can't do something like this cast (cast (float_field …

  2. sql server - mssql convert varchar to float - Stack Overflow

    Jul 19, 2013 · I have a field value productlength of 0.123. This is from a view and has a data type of varchar. I need to convert it to a float or numeric value so as o perform math comparisons. convert …

  3. Convert float into varchar in SQL Server without scientific notation

    Jun 29, 2011 · Convert float into varchar in SQL Server without scientific notation and trimming decimals. For example: I have the float value 1000.2324422, and then it would be converted into …

  4. How to convert Float to Varchar in SQL - Stack Overflow

    Jul 20, 2013 · Simple google search "Formatting a float in varchar but NOT in scientific notation" Result: bytes.com/topic/sql-server/answers/…

  5. sql server - SQL Converting Column type from float to varchar - Stack ...

    Aug 12, 2015 · 9 I'm trying to change the datatype in a column in a table from Float (null) to Varchar(25) (null). The largest float in the current data is 12 digits, but more digits may have to be added in the …

  6. Why is casting from float to varchar being rounded in SQL Server?

    The Convert method is fantastic, great answer. Most other answers to this question on StackExchange and many other sites revolve around casting to decimals, which isn't an option if you don't know the …

  7. Why does SQL Server convert floats to scientific notation?

    Jun 28, 2021 · You are using an implicit conversion from float to varchar (255), which implicitly uses style 0. Your floats all have more than six digits, so they are represented in scientific notation. …

  8. SQL convert varchar column to float - Stack Overflow

    Mar 13, 2014 · SQL Server Management Studii 2008 R2. Also the alter table statement seems to work on most of the columns, theres only two tables where the float is failing.

  9. sql - Convert from varchar to float SqlServer - Stack Overflow

    Jun 11, 2014 · Isnumeric has well documented short comings, for example SELECT ISNUMERIC('.') will return 1, but SELECT CAST('.' AS FLOAT) will fail. If you are using SQL Server 2012 or later you …

  10. sql server - float to varchar with no trailing zeros - Database ...

    I am having a heck of a time trying to convert a FLOAT(53) field to a VARCHAR where there are no trailing zeros or scientific notation. The field could have a number that is really big or really s...