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

  • SEARCH
  • Home
  • 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 8207601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:03:12+00:00 2026-06-07T09:03:12+00:00

According to MSDN , the range for REAL values is – 3.40E + 38

  • 0

According to MSDN, the range for REAL values is – 3.40E + 38 to -1.18E – 38, 0 and 1.18E – 38 to 3.40E + 38. However, I have quite a few values beyond that range in my table.

The following query returns lots of very small values and no very large ones:

SELECT  MyColumn ,
        *
FROM    data.MyTable
WHERE   MyColumn <> 0
        AND ( MyColumn < CONVERT(REAL, 1.18E-38)
              OR MyColumn > CONVERT(REAL, 3.40E+38)
            )
        AND ( MyColumn < CONVERT(REAL, -3.40E+38)
              OR MyColumn > CONVERT(REAL, -1.18E-38)
            ) 

It is easy to show how these values end up in the table. I cannot insert them directly:

CREATE TABLE a(r REAL NULL);
GO
INSERT INTO a(r) VALUES(4.330473E-39);
GO
SELECT r FROM a
GO
DROP TABLE a;

----
0.0

But I can divide two columns and get and outside of range value:

CREATE TABLE a
  (
    r1 REAL NULL ,
    r2 REAL NULL ,
    r3 REAL NULL
  ) ;
GO
INSERT  INTO a
        ( r1, r2 )
VALUES  ( 4.330473E-38, 1000 ) ;
GO
UPDATE  a
SET     r3 = r1 / r2 ;
SELECT  r1 ,
        r2 ,
        r3
FROM    a

r1            r2            r3
------------- ------------- -------------
4.330473E-38  1000          4.330433E-41

So I guess MSDN gives wrong ranges of valid data, correct?
Am I missing anything?

Several people suggested that this is a bug.

What part of this behavior exactly is a bug. is it:

  1. Wrong constants documented in MSDN and used in DBCC, as well as wrong threshold for rounding down.
  2. Update being able to save wrong values
  • 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-06-07T09:03:13+00:00Added an answer on June 7, 2026 at 9:03 am

    Books Online documents only the normal range for single- and double-precision floating point numbers. The IEEE 754 rules also specify floating-point numbers closer to zero than the smallest non-zero normal value, known variously as denormalized, denormal, and subnormal numbers. From that last link:

    Denormal numbers provide the guarantee that addition and subtraction of floating-point numbers never underflows; two nearby floating-point
    numbers always have a representable non-zero difference. Without
    gradual underflow, the subtraction a−b can underflow and produce zero
    even though the values are not equal. This can, in turn, lead to
    division by zero errors that cannot occur when gradual underflow is
    used.

    SQL Server is following the rules for single-precision floating point calculations in the examples posted. The bug may be that DBCC checks only for normal values, and throws an incorrect error message when it encounters a stored denormal value.

    Example producing a denormal single-precision value:

    DECLARE
        @v1 real = 14e-39,
        @v2 real = 1e+07;
    
    -- 1.4013e-045
    SELECT @v1 / @v2;
    

    Example showing a stored float denormal passes DBCC checks:

    CREATE TABLE dbo.b (v1 float PRIMARY KEY);
    INSERT b VALUES (POWER(2e0, -1075));
    SELECT v1 FROM b; -- 4.94065645841247E-324
    DBCC CHECKTABLE(b) WITH DATA_PURITY; -- No errors or warnings
    DROP TABLE dbo.b;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

According to MSDN I can have an OnClick for a LinkButton --> http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.linkbutton.onclick(v=VS.90).aspx However,
According to MSDN , a hash function must have the following properties: If two
According to MSDN MethodRental Class allows to change method body of dynamic modules. However
HttpResponse.End() seems to throw an exception according to msdn. Right now i have the
According to msdn : the commit syntax is : However when I omit the
A SorteDictionary is according to MSDN sorted on the key. Does that mean that
According to MSDN the range for date datatype is January 1, 1753, through December
According to MSDN (http://msdn.microsoft.com/en-us/library/dd487208.aspx), there is an object called DbDataReader that is created in
C# 's BinaryReader has a function that according to MSDN, reads an integer encoded
According to MSDN , Excel permits setting the Values property of a chart series

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.