Setting precision of a float data type

I am trying to create a table with a column of type 'float(24)' in SQL Server 2000. When I do that via Enterprise Manager, the Precision field is grayed out, so I cannot change it from the default value of 53. I tried to create a table running a script like this:

CREATE TABLE [dbo].[MyTable] (
      [X] [float(24)] NULL

but I am getting an error "Cannot find data type float(24).". So I have no idea, how the precision can be defined for this data type. Looks like a simple issue, and because of this it's even more frustrating. Can anybody enlighten me, please?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Use Decimal(24,6) instead.  I don't believe float has precision.
Göran AnderssonCommented:
What you are looking for is the data type real.

According to the documentation, you should be able to use float(24) to get a real, but perhaps that doesn't work in SQL Server 2000.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Guy Hengel [angelIII / a3]Billing EngineerCommented:
what kind of data do you want to store, actually?
nebfisAuthor Commented:
Thank you. Yes, according to documentation it should be possible, and that's what irritates me. It's one of the most confusing pieces of documentation I've recently seen. I can declare a variable to be of type float(12), for example, and it works perfectly fine, but I cannot create a table column of this type. Oh, well...
In my case I'll have to go with 'real'.

Using Decimal(24,6) is not a solution because what I need is a number in floating point format.

I have to be able to store numbers in floating point format.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.