# Tag Archives: CSharp-Decimal-Struct

## Decimal.ToSingle() Method in C#

This method is used to convert the value of the specified Decimal to the equivalent single-precision floating-point number. This method can produce round-off errors as… Read More »

## Decimal.ToSByte() Method in C#

This method is used to convert the value of the specified Decimal to the equivalent 8-bit signed integer. A user can also convert a Decimal… Read More »

## Decimal.Remainder() Method in C#

This method is used to compute the remainder when the division is done between two specified decimal values. Syntax: public static decimal Remainder (decimal a1,… Read More »

## Decimal.ToInt16() Method in C#

This method is used to convert the value of the specified Decimal to the equivalent 16-bit signed integer. A user can also convert a Decimal… Read More »

## Decimal.ToDouble() Method in C#

This method is used to convert the value of the specified Decimal to the equivalent double-precision floating-point number. This method can produce round-off errors as… Read More »

## Decimal.ToInt64() Method in C#

This method is used to convert the value of the specified Decimal to the equivalent 64-bit signed integer. A user can also convert a Decimal… Read More »

## Decimal.Divide() Method in C#

This method is used to divide the two specified decimal values. Syntax: public static decimal Divide (decimal a1, decimal a2); Parameters: a1: This parameter specifies… Read More »

## Decimal.ToByte() Method in C#

This method is used to converts the value of the specified Decimal to the equivalent 8-bit unsigned integer. Syntax: public static byte ToByte (decimal a);… Read More »

## Decimal.Negate() Method in C#

This method is used to get the result of multiplying the specified Decimal value by negative one. Syntax: public static decimal Negate (decimal a); Parameter:… Read More »

## Decimal.ToInt32() Method in C#

This method is used to convert the value of the specified Decimal to the equivalent 32-bit signed integer. A user can also convert a Decimal… Read More »

This method is used to add two specified decimal values. Syntax: public static decimal Add (decimal a1, decimal a2); Parameters: a1: This parameter specifies the… Read More »

## Decimal.Floor() Method in C#

This method is used to round the decimal to the closest integer toward negative infinity. Syntax: public static decimal Floor (decimal d); Parameter: d: This… Read More »

## Decimal.Multiply() Method in C#

This method is used to multiply two specified decimal values. Syntax: public static decimal Multiply (decimal a1, decimal a2); Parameters: a1: This parameter specifies the… Read More »

## Decimal.Ceiling() Method in C#

This method is used to round the decimal to the closest integer toward positive infinity. Syntax: public static decimal Ceiling (decimal d); Here d is… Read More »

## Decimal.Compare() Method in C#

This method is used to compare two specified Decimal values. Syntax: public static int Compare (decimal a1, decimal a2); Parameters: a1:This parameter specifies the first… Read More »