Skip to content

Commit a830325

Browse files
Merge pull request #1795 from jasonrandrews/review
Review floating-point Learning Path
2 parents 00f990c + 7f56222 commit a830325

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

content/learning-paths/cross-platform/floating-point-rounding-errors/_index.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
---
22
title: Explore floating-point differences between x86 and Arm
33

4-
draft: true
5-
cascade:
6-
draft: true
7-
84
minutes_to_complete: 30
95

106
who_is_this_for: This is an introductory topic for developers who are porting applications from x86 to Arm and want to understand how floating-point behavior differs between these architectures - particularly in the context of numerical consistency, performance, and debugging subtle bugs.

content/learning-paths/cross-platform/floating-point-rounding-errors/how-to-4.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,13 @@ g++ -o error-propagation-min error-propagation-min.cpp -frounding-math
6969

7070
Running the new binary on both systems shows that function `f1` produces a value nearly identical to `f2`, and the difference between them is now identical across both Arm64 and x86.
7171

72+
```bash
73+
./error-propagation-min
74+
```
75+
7276
Here is the output on both systems:
7377

7478
```output
75-
./error-propagation-min
7679
f1(1.000000e-08) = 0.0000000050
7780
f2(1.000000e-08) = 0.0000000050
7881
Difference (f1 - f2) = -1.7887354748e-17

0 commit comments

Comments
 (0)