Synopsis
byte scale
= Parameter.Scale;
Parameter.Scale = scale
;
Determines the maximum number of digits to the right of the decimal
in the Value
property, assuming it is a numeric
type. For example, the number 1234.56 has a scale of 2. The default
scale is 0, which indicates no maximum.
Note
You don’t need to set the Scale
property. The primary reason to set Scale
is to
ensure you don’t accidentally submit a number that
has a higher scale than allowed by the data source. In SQL Server,
you can set the scale for all decimal data types when creating a
table.