C# Class Dibware.StoredProcedureFramework.DataInfo.DecimalInfo

Represents information about a decimal. code courtesy of Jason Kresowaty Ref: http://stackoverflow.com/questions/763942/calculate-system-decimal-precision-and-scale
Exibir arquivo Open project: dibley1973/StoredProcedureFramework Class Usage Examples

Public Methods

Method Description
DecimalInfo ( int precision, int scale, int trailingZeros ) : System

Initializes a new instance of the DecimalInfo struct.

FromDecimal ( decimal value ) : DecimalInfo

Creates a DecimalInfo for the specified decimal.

Method Details

DecimalInfo() public method

Initializes a new instance of the DecimalInfo struct.
public DecimalInfo ( int precision, int scale, int trailingZeros ) : System
precision int The precision.
scale int The scale.
trailingZeros int The trailing zeros.
return System

FromDecimal() public static method

Creates a DecimalInfo for the specified decimal.
public static FromDecimal ( decimal value ) : DecimalInfo
value decimal The value.
return DecimalInfo