Why is the following a wrong declaration:
float realNumber = 12.5;
Why do I need to put f
at the end like this:
float realNumber = 12.5f;
What is the purpose of declaring it a float
datatype if the default is double
? Sorry, but I am just starting to learn C# through this website and I am a beginner. Thanks!