Timeline for Why is my float comparison in awk not going the expected result?
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 12, 2021 at 16:37 | answer | added | ilkkachu | timeline score: 0 | |
| Dec 11, 2021 at 18:02 | vote | accept | Itération 122442 | ||
| Dec 11, 2021 at 13:23 | comment | added | steeldriver | Recent versions of GNU awk ignore your locale for numeric conversion by default. If your locale uses , as the decimal point, you should be able to get the desired result by invoking it with --use-lc-numeric. See for example 6.1.4.2 Locales Can Influence Conversion | |
| Dec 11, 2021 at 13:13 | comment | added | Ed Morton | Regarding comma as the decimal separator - FYI the important locale where that is not the case is the C (aka POSIX) locale which many tools use for portability and efficiency, see unix.stackexchange.com/a/87763/133219 for more info on that locale. | |
| Dec 11, 2021 at 12:27 | history | edited | Itération 122442 | CC BY-SA 4.0 | Based on Ed's tip, made question clearer. |
| Dec 11, 2021 at 11:53 | history | edited | Itération 122442 | CC BY-SA 4.0 | added 196 characters in body |
| Dec 11, 2021 at 10:23 | answer | added | FelixJN | timeline score: 2 | |
| Dec 11, 2021 at 10:17 | history | asked | Itération 122442 | CC BY-SA 4.0 |