About 4,420,000 results
Open links in new tab
  1. Difference between numeric, float and decimal in SQL Server

    Jun 29, 2009 · What are the differences between numeric, float and decimal datatypes and which should be used in which situations? For any kind of financial transaction (e.g. for salary field), which one is …

  2. MySQL: What's the difference between float and double?

    Jan 29, 2010 · Checking in the new database structure I saw that someone changed a field from float to double. Wondering why, I checked the mysql documentation, but honestly didn't understand what the …

  3. .net - C# Equivalent of SQL Server DataTypes - Stack Overflow

    For the following SQL Server datatypes, what would be the corresponding datatype in C#? Exact Numerics bigint numeric bit smallint decimal smallmoney int tinyint money Approximate Numerics float...

  4. Why is a SQL float different from a C# float - Stack Overflow

    Oct 14, 2015 · The float in Microsoft SQL Server is equivalent to a Double in C#. The reason for this is that a floating-point number can only approximate a decimal number, the precision of a floating-point …

  5. Remove trailing zeros from decimal in SQL Server - Stack Overflow

    May 30, 2010 · A decimal(9,6) stores 6 digits on the right side of the comma. Whether to display trailing zeroes or not is a formatting decision, usually implemented on the client side. But since SSMS …

  6. What's difference between float, double and decimal in sql?

    Oct 8, 2023 · What's difference between float, double and decimal in sql? [duplicate] Asked 2 years, 2 months ago Modified 2 years, 2 months ago Viewed 8k times

  7. sql server - Float in Database to ? in .NET - Stack Overflow

    May 23, 2016 · If you have a float in MSSQLServer, to what do you map this in .NET? Can you convert it to Double or will you lose numbers?

  8. SQL set floating point precision - Stack Overflow

    Jun 20, 2012 · For a SQL int that is being converted to a float, how do I set the precision of the floating point number? This is the selection I would like to truncate to two or 3 decimal places: AVG(Cast(e.

  9. sql - How to display all stored decimals of float and real type ...

    Sep 12, 2015 · The float value is (I guess) precise enough so that value 15.49 can be stored exactly. So how to display all digits that are stored in real and float type correctly?

  10. Write a number with two decimal places SQL Server

    Jan 13, 2021 · Generally you can define the precision of a number in SQL by defining it with parameters. For most cases this will be NUMERIC(10,2) or Decimal(10,2) - will define a column as a Number with …