Struct MySqlDecimal
Represents a decimal data type object in a MySql database.
Namespace: MySql.Data.Types
Assembly: MySql.Data.dll
Version: 8.2.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 |
---|---|
Boolean |
Precision
Gets or sets the decimal precision of the type.
Declaration
public byte Precision { readonly get; set; }
Property Value
Type | Description |
---|---|
Byte |
Scale
Gets or sets the scale of the type.
Declaration
public byte Scale { readonly get; set; }
Property Value
Type | Description |
---|---|
Byte |
Value
Gets the decimal value associated to this type.
Declaration
public readonly decimal Value { get; }
Property Value
Type | Description |
---|---|
Decimal |
Methods
ToDouble()
Converts this decimal value to a double value.
Declaration
public double ToDouble()
Returns
Type | Description |
---|---|
Double | The value of this type converted to a dobule value. |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |