.NET - Why is there no fixed point numeric data type in C#?

richard picture richard · Feb 21, 2011 · Viewed 9.8k times · Source

It seems like there would be a ton of uses for a fixed point data type. Why is there not one in .NET?

Note: I understand we can create our own classes/structs to suit our fixed point purposes and needs. That's not my question. I want to know WHY MS decided not to include a fixed point numeric data type.

Answer

SLaks picture SLaks · Feb 21, 2011

You're looking for the little-known System.Data.SqlTypes.SqlDecimal class.