decimal

A value type for high-precision decimal arithmetic, commonly used with money.

What is decimal in C#?

decimal — A value type for high-precision decimal arithmetic, commonly used with money.

class Product
{
    decimal price = 4.50m;
}

Level: Novice · More C# terms at this level

Updated