Skip to content

Tag Archives: CSharp-Decimal-Struct

Decimal.ToString() Method is used to convert the numeric value of the current instance to its equivalent string representation. There are 4 methods in the overload… Read More
Decimal.ToString() Method is used to convert the numeric value of the current instance to its equivalent string representation using the specified culture-specific format information. There… Read More
Decimal.ToOACurrency(Decimal) Method is used to convert the specified Decimal value to the equivalent OLE Automation Currency value, which is contained in a 64-bit signed integer.… Read More
Decimal.FromOACurrency() Method is used to convert the specified 64-bit signed integer that contains an OLE Automation Currency value, to the equivalent Decimal value. Syntax: public… Read More
Decimal.Round Method is used to round a value to the nearest integer or a specified number of decimal places. There are 4 methods in the… Read More
Decimal.GetHashCode method is used to get the HashCode for the current Decimal instance. Syntax: public override int GetHashCode (); Return Value: This method returns a… Read More
Decimal.GetTypeCode method is used to get the TypeCode for value type Decimal. Syntax: public TypeCode GetTypeCode (); Return Value: This method returns the enumerated constant… Read More
This method is used to compare the current instance to a specified object or Decimal and returns an indication of their relative values. There are… Read More
Decimal.GetBits() Method is used to convert the value of a specified instance of Decimal to its equivalent binary representation. Syntax: public static int[] GetBits (decimal… Read More
This method is used to get the integral digits of the specified Decimal by discarding any fractional digits. This method rounds the specified value to… Read More
This method is used to convert the value of the specified Decimal to the equivalent 64-bit unsigned integer. A user can also convert a Decimal… Read More
This method is used to convert the value of the specified Decimal to the equivalent 32-bit unsigned integer. A user can also convert a Decimal… Read More
This method is used to convert the value of the specified Decimal to the equivalent 16-bit unsigned integer. A user can also convert a Decimal… Read More
In C#, Decimal Struct class is used to represent a decimal floating-point number. The range of decimal numbers is +79,228,162,514,264,337,593,543,950,335 to -79,228,162,514,264,337,593,543,950,335. Due to its… Read More
This method is used to subtract the one specified Decimal value from another. Syntax: public static decimal Subtract (decimal a1, decimal a2); Parameters: a1: This… Read More