# Understand floating-point behavior across x86 and Arm architectures

## In this learning path

- [Introduction](https://learn.arm.com/learning-paths/cross-platform/floating-point-behavior/)
- [Floating-point representation](https://learn.arm.com/learning-paths/cross-platform/floating-point-behavior/how-to-1/)
- [Overflow in floating-point to integer conversion](https://learn.arm.com/learning-paths/cross-platform/floating-point-behavior/how-to-2/)
- [Precision and floating-point instruction considerations](https://learn.arm.com/learning-paths/cross-platform/floating-point-behavior/how-to-3/)
- [Next Steps](https://learn.arm.com/learning-paths/cross-platform/floating-point-behavior/_next-steps/)

## About this Learning Path

|  |  |
| --- | --- |
| Skill level: | Advanced |
| Reading time: | 30 min |
| Last updated: | 06 Jul 2026 |

|  |
| --- |
| Authors: |
| Kieran Hejmadi , Arm<br>[GitHub](https://github.com/kieranhejmadi01)<br>[LinkedIn](https://linkedin.com/in/kieran-hejmadi-88920815b)<br>Jason Andrews , Arm<br>[GitHub](https://github.com/jasonrandrews)<br>[LinkedIn](https://linkedin.com/in/jason-andrews-7b05a8) |
| Arm IP: |
| [Cortex-A](https://support.arm.com/?tab=compute-ip&Product%20Type=Application%20Processors) [Neoverse](https://support.arm.com/?tab=compute-ip&Product%20Type=Infrastructure%20Processors) |
| Tags: |
| [Performance and Architecture](https://learn.arm.com/tag/performance-and-architecture/) [Linux](https://learn.arm.com/tag/linux) [CPP](https://learn.arm.com/tag/cpp) |

|  |  |
| --- | --- |
| Authors: | Kieran Hejmadi , Arm<br>[GitHub](https://github.com/kieranhejmadi01)<br>[LinkedIn](https://linkedin.com/in/kieran-hejmadi-88920815b)<br>Jason Andrews , Arm<br>[GitHub](https://github.com/jasonrandrews)<br>[LinkedIn](https://linkedin.com/in/jason-andrews-7b05a8) |
| Arm IP: | [Cortex-A](https://support.arm.com/?tab=compute-ip&Product%20Type=Application%20Processors) [Neoverse](https://support.arm.com/?tab=compute-ip&Product%20Type=Infrastructure%20Processors) |
| Tags: | [Performance and Architecture](https://learn.arm.com/tag/performance-and-architecture/) [Linux](https://learn.arm.com/tag/linux) [CPP](https://learn.arm.com/tag/cpp) |

## Who is this for?
This is a topic for developers who are porting applications from x86 to Arm and want to understand floating-point behavior across these architectures. Both architectures provide reliable and consistent floating-point computation following the IEEE 754 standard.

## What will you learn?
After completing this Learning Path, you'll be able to perform the following tasks:
- Understand that Arm and x86 produce identical results for all well-defined floating-point operations.
- Recognize that differences only occur in special undefined cases permitted by IEEE 754.
- Learn to recognize floating-point differences and make your code portable across architectures.

## Prerequisites
Before starting, you'll need the following prerequisites:
- Access to an x86 and an Arm Linux machine.
- Familiarity with floating-point numbers.

## Summary
You’ll examine how x86 and Arm implement IEEE 754 floating-point and see where results match and where they can legally differ. You’ll compare behavior across two Linux systems and focus on edge conditions the standard leaves undefined, such as converting out-of-range floating-point values to integers. You’ll also see how expression formulation and fused multiply-add (FMA) can produce small, explainable single-precision differences between mathematically equivalent functions. You can then recognize when a discrepancy indicates an undefined case, adjust code to avoid those cases, and structure computations so results are portable across Arm and x86.
