Commit a2682af
fix: round floats to 4 decimal places in CSV output (#1080)
Raw IEEE 754 values like 0.4650000000000001 were written directly.
Also, values with exactly 3 decimal digits (e.g. 0.575) were misread
by LibreOffice in European locales as integers (575) because the dot
is treated as a thousands separator.
Formatting all floats as fixed 4-decimal strings (e.g. 0.4650, 0.5750)
eliminates both the precision noise and the thousands-separator ambiguity.
Co-authored-by: florath-ai-assistant[bot] <Andreas.Florath@telekom.de>1 parent 1d76e91 commit a2682af
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
47 | 54 | | |
48 | 55 | | |
49 | 56 | | |
| |||
80 | 87 | | |
81 | 88 | | |
82 | 89 | | |
83 | | - | |
84 | | - | |
| 90 | + | |
| 91 | + | |
85 | 92 | | |
86 | 93 | | |
87 | 94 | | |
| |||
182 | 189 | | |
183 | 190 | | |
184 | 191 | | |
185 | | - | |
| 192 | + | |
186 | 193 | | |
187 | 194 | | |
188 | 195 | | |
| |||
0 commit comments