Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SqlCeParameter.Scale Property

Gets or sets the number of decimal places to which Value is resolved.

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)
public byte Scale { get; set; }

Property Value

Type: System.Byte
The number of decimal places to which Value is resolved. The default is 0.

The Scale property is only used for decimal and numeric input parameters.

The following example creates a SqlCeParameter and sets the Scale property.

SqlCeParameter param = new SqlCeParameter("@Price", SqlDbType.Decimal);
param.Value = 3.1416;
param.Precision = 8;
param.Scale = 4;


Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.