Search Results for

    Show / Hide Table of Contents

    Struct MySqlDecimal

    Represents a decimal data type object in a MySql database.

    Namespace: MySql.Data.Types
    Assembly: MySql.Data.dll
    Version: 9.3.0
    Syntax
    public struct MySqlDecimal

    Properties

    IsNull

    Gets a boolean value signaling if the type is null.

    Declaration
    public readonly bool IsNull { get; }
    Property Value
    Type Description
    System.Boolean

    Precision

    Gets or sets the decimal precision of the type.

    Declaration
    public byte Precision { readonly get; set; }
    Property Value
    Type Description
    System.Byte

    Scale

    Gets or sets the scale of the type.

    Declaration
    public byte Scale { readonly get; set; }
    Property Value
    Type Description
    System.Byte

    Value

    Gets the decimal value associated to this type.

    Declaration
    public readonly decimal Value { get; }
    Property Value
    Type Description
    System.Decimal

    Methods

    ToDouble()

    Converts this decimal value to a double value.

    Declaration
    public double ToDouble()
    Returns
    Type Description
    System.Double

    The value of this type converted to a dobule value.

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.ValueType.ToString()
    In This Article
    • Properties
      • IsNull
      • Precision
      • Scale
      • Value
    • Methods
      • ToDouble()
      • ToString()
    Back to top Copyright © 2021, 2025, Oracle and/or its affiliates.