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;


Show: