- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- 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);
Advertisements