About 218,000 results
Open links in new tab
  1. Floating-point numeric types - C# reference | Microsoft Learn

    Sep 29, 2022 · The floating-point numeric types represent real numbers. All floating-point numeric types are value types. They are also simple types and can be initialized with literals. All floating-point …

  2. C# Data Types - W3Schools

    The precision of a floating point value indicates how many digits the value can have after the decimal point. The precision of float is only six or seven decimal digits, while double variables have a …

  3. C# float - C# Tutorial

    In this tutorial, you'll learn how to use the C# float types to represent floating-point numbers.

  4. Difference between Decimal, Float and Double in .Net

    Jul 23, 2025 · Float is a single precision 32 bits (6-9 significant figures) data type. It is used mostly in graphic libraries because of very high demand for processing power, and also in conditions where …

  5. Decimal vs. Float vs. Double in C# – Coding Bolt

    Feb 8, 2025 · Choosing the right floating-point type is crucial. In C#, you have three main options when it comes to representing non-integer values: float, double, and decimal.

  6. C# - float Numbers - Dot Net Perls

    Sep 7, 2023 · You will need to use the character suffix "f" or "F" on constants you want to be treated as float values. If you don't specify "f" or "F", you will get a compile-time error.

  7. Float vs. Double vs. Decimal in C# - mishelshaji.com

    Aug 13, 2025 · When working with numerical data in C#, you frequently need to choose the right data type to represent non-integer values. C# supports three basic floating-point types: float, double, and …

  8. C# Floating-Point Types - Complete Guide - ZetCode

    Apr 1, 2025 · C# provides three floating-point types: float, double, and decimal, each with different precision and use cases. This tutorial covers their characteristics, proper usage, and common pitfalls.

  9. Floating-Point Numbers | C# Tutorial

    Sep 12, 2025 · In this article, we’ll introduce the three main floating-point types in C#: float, double, and decimal. We’ll explain how they store numbers, how they differ in precision, and why choosing the …

  10. Essential C#: Floating-Point Types (float, double)

    Oct 12, 2025 · Floating-point numbers have varying degrees of precision, and binary floating-point types can represent numbers exactly only if they are a fraction with a power of 2 as the denominator.