# Decimal Methods

**.NET Framework 1.1**

The methods of the **Decimal** structure are listed here. For a complete list of **Decimal** structure members, see the Decimal Members topic.

#### Public Methods

Add Supported by the .NET Compact Framework. | Adds two specified Decimal values. |

Compare Supported by the .NET Compact Framework. | Compares two specified Decimal values. |

CompareTo Supported by the .NET Compact Framework. | Compares this instance to a specified Object. |

Divide Supported by the .NET Compact Framework. | Divides two specified Decimal values. |

Equals Supported by the .NET Compact Framework. | Overloaded. Overridden. Returns a value indicating whether two instances of Decimal represent the same value. |

Floor Supported by the .NET Compact Framework. | Rounds a specified Decimal number to the closest integer toward negative infinity. |

FromOACurrency | Converts the specified 64-bit signed integer, which contains an OLE Automation Currency value, to the equivalent Decimal value. |

GetBits Supported by the .NET Compact Framework. | Converts the value of a specified instance of Decimal to its equivalent binary representation. |

GetHashCode Supported by the .NET Compact Framework. | Overridden. Returns the hash code for this instance. |

GetType (inherited from Object)
Supported by the .NET Compact Framework. | Gets the Type of the current instance. |

GetTypeCode Supported by the .NET Compact Framework. | Returns the TypeCode for value type Decimal. |

Multiply Supported by the .NET Compact Framework. | Multiplies two specified Decimal values. |

Negate Supported by the .NET Compact Framework. | Returns the result of multiplying the specified Decimal value by negative one. |

Parse Supported by the .NET Compact Framework. | Overloaded. Converts the String representation of a number to its Decimal equivalent. |

Remainder Supported by the .NET Compact Framework. | Computes the remainder after dividing two Decimal values. |

Round Supported by the .NET Compact Framework. | Rounds a Decimal value to a specified number of decimal places. |

Subtract Supported by the .NET Compact Framework. | Subtracts one specified Decimal value from another. |

ToByte Supported by the .NET Compact Framework. | Converts the value of the specified Decimal to the equivalent 8-bit unsigned integer. |

ToDouble Supported by the .NET Compact Framework. | Converts the value of the specified Decimal to the equivalent double-precision floating-point number. |

ToInt16 Supported by the .NET Compact Framework. | Converts the value of the specified Decimal to the equivalent 16-bit signed integer. |

ToInt32 Supported by the .NET Compact Framework. | Converts the value of the specified Decimal to the equivalent 32-bit signed integer. |

ToInt64 Supported by the .NET Compact Framework. | Converts the value of the specified Decimal to the equivalent 64-bit signed integer. |

ToOACurrency | Converts the specified Decimal value to the equivalent OLE Automation Currency value, which is contained in a 64-bit signed integer. |

ToSByte Supported by the .NET Compact Framework. | Converts the value of the specified Decimal to the equivalent 8-bit signed integer. |

ToSingle Supported by the .NET Compact Framework. | Converts the value of the specified Decimal to the equivalent single-precision floating-point number. |

ToString Supported by the .NET Compact Framework. | Overloaded. Overridden. Converts the numeric value of this instance to its equivalent String representation. |

ToUInt16 Supported by the .NET Compact Framework. | Converts the value of the specified Decimal to the equivalent 16-bit unsigned integer. |

ToUInt32 Supported by the .NET Compact Framework. | Converts the value of the specified Decimal to the equivalent 32-bit unsigned integer. |

ToUInt64 Supported by the .NET Compact Framework. | Converts the value of the specified Decimal to the equivalent 64-bit unsigned integer. |

Truncate Supported by the .NET Compact Framework. | Returns the integral digits of the specified Decimal; any fractional digits are discarded. |

#### Protected Methods

Finalize (inherited from Object)
Supported by the .NET Compact Framework. | Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
In C# and C++, finalizers are expressed using destructor syntax. |

MemberwiseClone (inherited from Object)
Supported by the .NET Compact Framework. | Creates a shallow copy of the current Object. |