

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Why is f required while declaring floats in C#?
The f is a lowercase suffix set while declaring a float. It tells the compiler that the literal is of a specific type.
Example
using System.IO; using System; public class Program { public static void Main() { float val = 30.22f; Console.WriteLine(val); } }
Output
30.22
Above, we have set the float using f suffix.
IEnumerable res = val1.AsQueryable().Intersect(val2);
- Related Questions & Answers
- Why strict aliasing is required in C?
- Restrictions while declaring a generic (type) in Java
- Why @SafeVarargs is required in Java 9?
- Why confidentiality is required in information system?
- How floats are stored in C compiler?
- Why there is not do...while loop in Python?
- Why a living person sinks and a dead person floats in water?
- Why is it bad to watch TV while eating?
- How do I generate random floats in C++?
- How to declaring pointer variables in C/C++?
- Where exactly Type-Parameter need to be specified, while declaring generic method in Java?
- Number of carries required while adding two numbers in JavaScript
- What is to be used to store floats in MySQL?
- What is the use of declaring variables in JavaScript?
- Find the Nth term of the series where each term f[i] = f[i – 1] – f[i – 2] in C++
Advertisements