Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 559665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:15:41+00:00 2026-05-13T12:15:41+00:00

SQL Sever 2000 documentation : Is a floating point number data with the following

  • 0

SQL Sever 2000 documentation:

Is a floating point number data with
the following valid values: –3.40E +
38 through -1.18E – 38, 0 and 1.18E –
38 through 3.40E + 38. Storage size is
4 bytes. In SQL Server, the synonym
for real is float(24).

SQL Server 2005 documentation:

The ISO synonym for real is float(24).

EDIT:
Given what I am reading it says the precision is 7 but I can enter in my database(SQL Server 2005) max of 9 see below, as similarly stated here question no. 7.

Example: 0.180000082

What is the true precision of real and are there configuration options(ie:compatibility modes) that can affect the precision?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T12:15:42+00:00Added an answer on May 13, 2026 at 12:15 pm

    Your answer is on that same page you linked:

    For FLOAT data type, the n is the number of bits used to store the mantissa in scientific notation

    24 bits of mantissa gives you (approximately) 7 decimal digits of precision (because 2^24 ~= 10^7).

    edit to add:

    Notice that everyone keeps saying ‘approximately’ – this is for a reason 🙂

    Binary floating point numbers and decimal literals do not necessarily play together in an intuitive manner. For background read What Every Computer Scientist Should Know About Floating-Point Arithmetic. Also note that saying ‘approximately 7 decimal digits of precision‘ is not incompatible with being able to store a value with more than 7 significant figures! It does mean however that this datatype will be unable to distinguish between 0.180000082 and 0.180000083, for example, because it isn’t actually storing the exact value of either:

    declare @f1 real
    declare @f2 real
    
    set @f1 = 0.180000082
    set @f2 = 0.180000083
    
    select @f1, @f2
    
    select @f1 - @f2
    

    ------------- -------------
    0.1800001     0.1800001
    
    (1 row(s) affected)
    
    
    -------------
    0
    
    (1 row(s) affected)
    

    The fact is that real is the same as float(24), a binary floating point number with 24 bits of mantissa, and I don’t believe there’s a way to change this. Floating-point types are in general not a good choice if you want to store exact decimal quantities.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 298k
  • Answers 298k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer //span[./text() = 'System'] May 13, 2026 at 7:32 pm
  • Editorial Team
    Editorial Team added an answer There is no Option Compare in VBScript, sorry. Source May 13, 2026 at 7:32 pm
  • Editorial Team
    Editorial Team added an answer RewriteRule ^/?([^/]+)/([^/]+)/?$ /?lang=$1&RootCategory=$2 RewriteRule ^/?([^/]+)/([^/]+)(/.+)?/([^/]+)/?$ /?lang=$1&RootCategory=$2&LeafCategory=$4 May 13, 2026 at 7:31 pm

Related Questions

The sp_password sproc in sql server 2000 only required membership in the db_accessadmin db_securityadmin
I'm running SQL Server 2000 and I need to export the SQL Statement from
I am using the .NET 2.0/3.5 framework for my application. I need to run
Yes, I know. The existence of a running copy of SQL Server 6.5 in
I have an SSIS package I am developing. I am attempting to write data

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.