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