About 630,000 results
Open links in new tab
  1. 4.8 — Floating point numbers – Learn C++ - LearnCpp.com

    Nov 24, 2024 · Integers are great for counting whole numbers, but sometimes we need to store very large (positive or negative) numbers, or numbers with a fractional component. A floating …

  2. Floating-point arithmetic - Wikipedia

    The term floating point refers to the fact that the number's radix point can "float" anywhere to the left, right, or between the significant digits of the number. This position is indicated by the …

  3. Type float | Microsoft Learn

    Aug 3, 2021 · Floating-point variables are represented by a mantissa, which contains the value of the number, and an exponent, which contains the order of magnitude of the number. The …

  4. What is a float data type? - California Learning Resource Network

    Jul 2, 2025 · A float (short for “floating-point number”) is a data type used to represent numbers that are not integers. It allows for the storage of values with fractional parts, providing a more …

  5. Floating Point - CS 3410

    Understanding how float actually works is the key to avoiding surprising pitfalls like this. Before we get to computer representations, let’s think about binary numbers “on paper.” We’ve seen …

  6. Floating Point Representation - GeeksforGeeks

    Oct 8, 2025 · Floating-point representation lets computers work with very large or very small real numbers using scientific notation. IEEE 754 defines this format using three parts: sign, …

  7. What Is a Floating-point? - Computer Hope

    Dec 6, 2024 · In programming, a floating-point or float is a variable type that stores floating-point number values. A floating-point number is one where the position of the decimal point can …

  8. 3.1. Floating-point — How to Think Like a Computer Scientist - C++

    In C++, there are two floating-point types, called float and double. In this book we will use doubles exclusively. You can create floating-point variables and assign values to them using the same …

  9. Using Floating-Point Numbers - C++ Programming Fundamentals

    Jan 1, 2026 · What are floating-point numbers? A floating-point type variable can hold numbers with fractional components, such as 9876.5, -12.75, or 0.00832. The "floating" refers to the …

  10. 3.5: Floating-Point Data Type - Engineering LibreTexts

    The floating-point family of data types represent number values with fractional parts. They are technically stored as two integer values: a mantissa and an exponent.