Export (0) Print
Expand All

Decimal (EDM)

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

The Decimal type represents a numeric value with fixed precision and scale. This type can describe a numeric value ranging from negative 10^38 + 1 to positive 10^38 -1.

This type maps to the Decimal type in SQL Server.

Facets

The Decimal type supports EDM simple type facets of Precision and Scale. The Precision facet is a positive integer that specifies the maximum number of decimal digits that an instance of the decimal type can have, both to the left and to the right of the decimal point. The Precision value can range from 1 through 38. The default Precision is 18.

The Scale is a positive integer that specifies the maximum number of decimal digits to the right of the decimal point that an instance of this type can have. The Scale value can range from 0 through the specified precision value. The .NET Framework supports a maximum Scale of 28, whereas the SQL Server decimal and numeric data types have a maximum Scale of 38. The default Scale value is 0.

See Also

Concepts

Single (EDM)

Community Additions

Show:
© 2014 Microsoft