how to store decimal value in c# code example Example: Decimal Number Variable C# float number = 8.1f;