Skip to content

Underscore as thousands separator #1489

Closed

Description

@baryluk
commodity 1_000.00 PLN

would be nice to have. At least for inputs, but also for outputs.

Activity

  1. added
    A-WISHSome kind of improvement request or proposal.
    on Feb 22, 2021
  2. changed the title [-]Underscore as thousends separator[/-] [+]Underscore as thousands separator[/+] on Mar 7, 2021
  3. simonmichael commented on Mar 13, 2021

    @simonmichael
    Member

    @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 ?

  4. adept commented on Mar 14, 2021

    @adept
    Collaborator

    @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?

  5. baryluk commented on Mar 17, 2021

    @baryluk
    Author

    @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.

  6. Xitian9 commented on May 3, 2021

    @Xitian9
    Collaborator

    GHC has also supported this notation since 8.6.1: https://typeclasses.com/ghc/numeric-underscores

  7. ShrykeWindgrace commented on Sep 9, 2021

    @ShrykeWindgrace
    Contributor

    @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?

    In France - no, it does not exist here.

  8. simonmichael commented on Mar 1, 2022

    @simonmichael
    Member

    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.

  9. raingloom commented on Aug 13, 2024

    @raingloom

    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.

  10. the-solipsist commented on Oct 8, 2025

    @the-solipsist
    Collaborator

    NBSP is already mentioned in #273 (comment). I'd suggest closing this issue in favour of #273.

  11. simonmichael commented on Oct 8, 2025

    @simonmichael
    Member

    Closing for now.

  12. simonmichael commented on Aug 2, 2026

    @simonmichael
    Member

    This is now supported in main, as part of @kfkonrad's #2679.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-WISHSome kind of improvement request or proposal.journalThe journal file format, and its features.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions