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
Afficher le fichier Open project: dibley1973/StoredProcedureFramework Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat System

FromDecimal() public static méthode

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