You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@baryluk, we researched this a little and couldn't find any country that uses this convention. Do you know who uses it, or is it just a notation you like ?
@simonmichael ocaml allows underscores in numeric literals (https://caml.inria.fr/pub/docs/manual-ocaml/lex.html), so it is often used as a convenient separator in source code (let magic_number = 1_000_000). Given ocaml's pedigree, maybe it is something that exists in France?
@baryluk, we researched this a little and couldn't find any country that uses this convention. Do you know who uses it, or is it just a notation you like ?
Just a notation I like and prefer. It is relatively country-neutral, and is cleaner than using other separators. As a person using quite a bit of D programming language, which had this feature for 15 years, I got acustomed for it. Afaik Go and C++ also now supports it.
@simonmichael ocaml allows underscores in numeric literals (https://caml.inria.fr/pub/docs/manual-ocaml/lex.html), so it is often used as a convenient separator in source code (let magic_number = 1_000_000). Given ocaml's pedigree, maybe it is something that exists in France?
We're discussing this again in chat, but I don't think we should add it without more motivation, since every added feature has a cost. Some examples of it used for accounting/data-tracking-type things in the wild could help.
Activity
[-]Underscore as thousends separator[/-][+]Underscore as thousands separator[/+]simonmichael commentedon Mar 13, 2021
@baryluk, we researched this a little and couldn't find any country that uses this convention. Do you know who uses it, or is it just a notation you like ?
adept commentedon Mar 14, 2021
@simonmichael ocaml allows underscores in numeric literals (https://caml.inria.fr/pub/docs/manual-ocaml/lex.html), so it is often used as a convenient separator in source code (
let magic_number = 1_000_000). Given ocaml's pedigree, maybe it is something that exists in France?baryluk commentedon Mar 17, 2021
Just a notation I like and prefer. It is relatively country-neutral, and is cleaner than using other separators. As a person using quite a bit of D programming language, which had this feature for 15 years, I got acustomed for it. Afaik Go and C++ also now supports it.
Xitian9 commentedon May 3, 2021
GHC has also supported this notation since 8.6.1: https://typeclasses.com/ghc/numeric-underscores
ShrykeWindgrace commentedon Sep 9, 2021
In France - no, it does not exist here.
simonmichael commentedon Mar 1, 2022
We're discussing this again in chat, but I don't think we should add it without more motivation, since every added feature has a cost. Some examples of it used for accounting/data-tracking-type things in the wild could help.
raingloom commentedon Aug 13, 2024
This is the format Erste's CSV export uses.
Edit: nevermind, it was Doom Emacs showing NBSP as underscore. But that means NBSP is not handled as advertised.
the-solipsist commentedon Oct 8, 2025
NBSP is already mentioned in #273 (comment). I'd suggest closing this issue in favour of #273.
simonmichael commentedon Oct 8, 2025
Closing for now.
feat: journal: accept _ and ' as digit group marks (hledgerorg#273, h…
feat: journal: accept _ and ' as digit group marks (#273, #1489)
simonmichael commentedon Aug 2, 2026
This is now supported in main, as part of @kfkonrad's #2679.