decimal
noun
say it: “DES-ih-mul” /ˈdɛsɪməl/
A C# type for exact decimal numbers, used for money, written with an m suffix like 19.99m.
What is decimal in C#?
decimal — A value type for high-precision decimal arithmetic, commonly used with money.
class Product
{
decimal price = 4.50m;
}
In a sentence
- “Prices in the store are decimal values, so the totals are always to the exact cent.”
Level: Novice · More C# terms at this level
Updated