April 2003
Beginner to intermediate
620 pages
21h 48m
English
SqlDecimal
A structure that represents a numeric value with a fixed precision
and scale and a value between -1038-1 and
1038-1. You can set the precision through
the Precision property (which represents the
maximum number of digits used), and the scale through the
Scale property (which represents the number of
decimal places to which the value is resolved).
public struct SqlDecimal : INullable, IComparable { // Public Constructors public SqlDecimal(bytebPrecision, bytebScale, boolfPositive, int[ ]bits); public SqlDecimal(bytebPrecision, bytebScale, boolfPositive, intdata1, intdata2, intdata3, intdata4); public SqlDecimal(decimalvalue); public SqlDecimal(doubledVal); public SqlDecimal(intvalue); public SqlDecimal(longvalue); // Public Static Fields public static readonly byte MaxPrecision; // =38 public static readonly byte MaxScale; // =38 public static readonly SqlDecimal MaxValue; // =99999999999999999999999999999999999999 public static readonly SqlDecimal MinValue; // =-99999999999999999999999999999999999999 public static readonly SqlDecimal Null; // =Null // Public Instance Properties public byte[ ] BinData{get; } public int[ ] Data{get; } public bool IsNull{get; } // implements INullable public bool IsPositive{get; } public byte Precision{get; } public byte Scale{get; } public decimal Value{get; } // Public Static Methods public static SqlDecimal Abs(SqlDecimaln); public static SqlDecimal Add(SqlDecimalx, SqlDecimaly); public static SqlDecimal ...
Read now
Unlock full access