We are independent & ad-supported. We may earn a commission for purchases made through our links.
Advertiser Disclosure
Our website is an independent, advertising-supported platform. We provide our content free of charge to our readers, and to keep it that way, we rely on revenue generated through advertisements and affiliate partnerships. This means that when you click on certain links on our site and make a purchase, we may earn a commission. Learn more.
How We Make Money
We sustain our operations through affiliate commissions and advertising. If you click on an affiliate link and make a purchase, we may receive a commission from the merchant at no additional cost to you. We also display advertisements on our website, which help generate revenue to support our work and keep our content free for readers. Our editorial team operates independently of our advertising and affiliate partnerships to ensure that our content remains unbiased and focused on providing you with the best information and recommendations based on thorough research and honest evaluations. To remain transparent, we’ve provided a list of our current affiliate partners here.
Hardware

Our Promise to you

Founded in 2002, our company has been a trusted resource for readers seeking informative and engaging content. Our dedication to quality remains unwavering—and will never change. We follow a strict editorial policy, ensuring that our content is authored by highly qualified professionals and edited by subject matter experts. This guarantees that everything we publish is objective, accurate, and trustworthy.

Over the years, we've refined our approach to cover a wide range of topics, providing readers with reliable and practical advice to enhance their knowledge and skills. That's why millions of readers turn to us each year. Join us in celebrating the joy of learning, guided by standards you can trust.

What is a Floating Point Unit?

By Kurt Inman
Updated: May 16, 2024
Views: 9,963
Share

A floating point unit is a functional block of a computer processor that performs floating point arithmetic operations. Also known by the acronym FPU, a floating-point unit can be a physically-separate co-processor as well. An FPU usually accesses data via the same addressing modes as the rest of the processor and generally includes its own registers. A processor uses an FPU to calculate trigonometric, logarithmic and basic floating-point arithmetic functions. It also uses an FPU to load, store and compare numbers in several integer and floating point data types.

Many processors do not include a floating point unit. Most of the microprocessors produced by Intel Corporation and Motorola Incorporated prior to the late 1980s do not include one, for example. Many Reduced Instruction Set Computing (RISC) processors and embedded controllers do not have one either. These chips do include an Arithmetic Logic Unit (ALU) to perform basic integer arithmetic and bitwise logic functions. Floating point math is handled by an external co-processor or a software library, however.

Most processors and software systems implement the Institute of Electrical and Electronics Engineers (IEEE) standard for floating point operations. The IEEE-754 standard was first released in 1985 and expanded in 2008 to include additional data types. It defines several integer and floating point data types, each with its own precision, representation and numeric range. It also defines many arithmetic operations, methods of rounding and handling exceptions like a division by zero. Whether the math is performed by a floating point unit or not, the IEEE floating-point standard guarantees identical results.

Besides addition, subtraction, multiplication and division, a floating point unit can perform many other operations. These often include scaling, square root and logarithmic computations. Sine, cosine and partial tangent trigonometric functions are usually provided as well. Integer and floating point numbers can be compared with the FPU and converted from one precision to another. They can also be rounded in either direction and stored directly to the processor's main memory.

The FPU of a graphics processor may include often-repeated functions common to three-dimensional object rotation or animation. Many embedded controllers are designed with processors optimized for digital signal processing (DSP). These may be used in audio and communications applications and can contain FPUs, which are good at fast Fourier transforms (FFTs), for example. Cryptography processors often include an FPU for high-speed computation of math-heavy encryption algorithms. General multiple-core processors may also include one floating point unit for each regular processor core.

Share
EasyTechJunkie is dedicated to providing accurate and trustworthy information. We carefully select reputable sources and employ a rigorous fact-checking process to maintain the highest standards. To learn more about our commitment to accuracy, read our editorial process.
Discussion Comments
Share
https://www.easytechjunkie.com/what-is-a-floating-point-unit.htm
Copy this link
EasyTechJunkie, in your inbox

Our latest articles, guides, and more, delivered daily.

EasyTechJunkie, in your inbox

Our latest articles, guides, and more, delivered daily.