Search Results for

    Show / Hide Table of Contents

    Class Precision

    Used for storing decimal number type precision for scale

    Inheritance
    System.Object
    Precision
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: LemonEdge.Utils.Database
    Assembly: Utils.dll
    Syntax
    [DataContract]
    public class Precision

    Constructors

    Precision(Int16, Int16)

    Creates a new decimal percision of type (number, decimalPlaces)

    Declaration
    public Precision(short number, short decimalPlaces)
    Parameters
    Type Name Description
    System.Int16 number

    The number of digits in the decimal

    System.Int16 decimalPlaces

    The number of decimal places

    Properties

    DecimalPlaces

    The number to be used for decimal places

    Declaration
    public short DecimalPlaces { get; }
    Property Value
    Type Description
    System.Int16

    Number

    The number of digits in the decimal type

    Declaration
    public short Number { get; }
    Property Value
    Type Description
    System.Int16

    Methods

    ToString()

    Returns the precision in the format (Number, DecimalPlaces)

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    The precision in the format (Number, DecimalPlaces)

    Overrides
    System.Object.ToString()

    Extension Methods

    MiscExtensions.SetIfNotEqual<T, P>(T, Expression<Func<T, P>>, P)
    ReflectionExtensions.ClearEventInvocations(Object, String)
    StringExtensions.ToCSVFormatString(Object, Type)
    SQLExtensions.ToSQLValue(Object, Boolean)
    In This Article
    Back to top © LemonTree Software Ltd. All rights reserved.