Digit Grouping

Issue #58 closed
Former user created an issue

Originally reported on Google Code with ID 58

What steps will reproduce the problem?
1. Calculate numbers with a result greater than 999

What is the expected output? What do you see instead?
I want to see 1 000 000 instead of 1000000. It makes it a whole lot easier 
to read.

What version of the product are you using? On what operating system?
0.7 on WinXP Pro SP2(32)

Please provide any additional information below.
Windows Calculator has this "feature" and it makes reading larger numbers 
with similar digits a lot easier.

Reported by gm.kdak on 2007-06-27 03:00:09

Comments (28)

  1. Former user Account Deleted

    ``` Thank you for your request.

    This is definitely a good idea, I support it.

    Probably too late for 0.8, so let's put it on the TODO for 0.9 ```

    Reported by `ariya.hidayat` on 2007-06-27 08:14:12 - Labels added: Type-Enhancement, Milestone-0.9 - Labels removed: Type-Defect

  2. Former user Account Deleted

    ``` I'd thought about implementing this, but I was not sure whether we should use a " " as the separator, or "," or "." (according to the l10n, just like the decimal separator). I'm definitely for it, just not sure about being default or option. ```

    Reported by `helder.pereira.correia` on 2007-06-27 19:29:02 - Status changed: `Accepted`

  3. Former user Account Deleted

    ``` IMHO, one should carefully choose a character that is not used elsewhere, because people will copy & paste results back into the input field. That's why I think a white space " " is not good, because it functions as a delimiter already, although I think, it is looking nicest. A comma is standard in countries that use a decimal point, and a point is used in countries that have a decimal comma. Since the input grammar (so far) does not allow commas and points outside of numbers, this solution has the advantage of being standard and free of conflict. However, my personal favorite is the back tick "`", because it has little blackness (or boldness, weight or whatever the correct typographical term is), and looks less disruptive to me than the ",". And it has no meaning in usual grammars.

    "world, population count 6,850,000,000" vs. "world, population count 6`850`000`000" "pi = 3.14159,26535,89793,23846,26433,83279,50288,41971,69399,37510,58209,74944" vs. "pi = 3.14159`26535`89793`23846`26433`83279`50288`41971`69399`37510`58209`74944"

    Wolf Lammen ```

    Reported by `ookami1@gmx.de` on 2007-06-27 22:13:41

  4. Former user Account Deleted

    ``` forgot that: And a back tick is easily distinguioshed from the decimal point (comman) ```

    Reported by `ookami1@gmx.de` on 2007-06-27 22:19:03

  5. Former user Account Deleted

    ``` Cant it be done in a way so that SpeedCrunch shows small spaces between the groups,

    but when you copy the number you get it without them? Then you dont have to worry about "most common" or "compatible" stuff. :) ```

    Reported by `gm.kdak` on 2007-06-27 23:45:15

  6. Former user Account Deleted

    ``` I agree with comment 5 (and also 6). Space seems to be a perfect choice. Copying to the clipboard however should only be in the "canonical" format. ```

    Reported by `ariya.hidayat` on 2007-06-28 14:06:27

  7. Former user Account Deleted

    ``` Effecting the display only looks appealing, especially if you can easily separate display information from clipboard copying. But what about those who have to enter big numbers?

    Wolf Lammen ```

    Reported by `ookami1@gmx.de` on 2007-06-28 21:08:10

  8. Former user Account Deleted

    ``` For number entry, I guess it's not so wise to insert extra character for digit grouping. OTOH, showing the character only (but it does not reall "exist", you can select or delete it in the input line) will be technically difficult.

    One possibility by reusing the syntax highlight. We could use slightly different color for each three digits, e.g. alternating between one color and the darker (or lighter) version thereof. ```

    Reported by `ariya.hidayat` on 2007-06-29 07:30:16

  9. Former user Account Deleted

    ``` What about doing the same both for input and output?

    Wolf Lammen ```

    Reported by `ookami1@gmx.de` on 2007-06-29 18:52:02

  10. Former user Account Deleted

    ``` Hmm, color syntax on the main display is a good idea. But I wonder whether it's really distracting or not... ```

    Reported by `ariya.hidayat` on 2007-07-03 15:31:18

  11. Former user Account Deleted

    Reported by `helder.pereira.correia` on 2007-11-03 19:40:20 - Labels added: Milestone-0.10 - Labels removed: Milestone-0.9

  12. Former user Account Deleted

    Reported by `helder.pereira.correia` on 2007-12-12 00:17:36 - Status changed: `New` - Labels removed: Milestone-0.10

  13. Former user Account Deleted

    ``` digit grouping will be available, once the parser is ready. ```

    Reported by `wolf.lammen` on 2008-02-21 09:56:52 - Status changed: `Started` - Labels added: Milestone-0.11

  14. Former user Account Deleted

    Reported by `helder.pereira.correia` on 2008-07-19 18:23:58 - Labels removed: Milestone-0.11

  15. Former user Account Deleted

    ``` Issue 248 has been merged into this issue. ```

    Reported by `helder.pereira.correia` on 2009-02-05 09:30:46

  16. Former user Account Deleted

    ``` "This is definitely a good idea, I support it."

    Me too! Its very imported for larger numbers.

    ```

    Reported by `herrruin` on 2009-11-10 13:09:51

  17. Former user Account Deleted

    ``` I agree whole-heartedly with including a separator character for display but not when copied to clipboard.

    There should be a menu option to toggle whether to use display-only separator characters, which would default off on initial install to mimic existing SpeedCrunch functionality.

    The separator character should display in the history, the entry area updating as you type, the Current Result tool-tip pop-up as you type, and the results in the history tape, possibly other areas I have overlooked.

    The resolution to which separator to have a menu option, similar to current menu Settings / Radix character with options for System Default or comma or space or ?user entry? - not sure if user entry possible in menu context, since SpeedCrunch does not have an application level Edit / Options, only menu-selection-driven options. Do various OS have a language-based default for separator character you could use for the System Default option? That could help out, otherwise the menu options could default to menu Settings / Separator -> default to None, other selections on menu would be comma, space, period, one or two other most common delimiters in use throughout the world.

    For comment 9, mentioning it may be technically difficult to have display-only characters, I believe in programming languages they have a format property separate from the actual data values that may make this straight-forward. There is also a request about pasting in values into SpeedCrunch with separator characters that the separator chars are removed, the fix for that (Issue 379 - http://code.google.com/p/speedcrunch/issues/detail?id=379&can=1&q=strip) would apply to copying history lines out of SpeedCrunch and having the separators stripped off if other ways aren't found.

    Can't wait for this to be implemented, thanks for a great calculator app! ```

    Reported by `socalbulkforward` on 2011-08-18 20:32:06

  18. Former user Account Deleted

    ``` Part of the new menu Settings / Separator options could be an additional toggle to "Include on Clipboard" that would default off, but this is easy after the other issues are figured out and completes the available functionality since some users inevitably would prefer to have the separators copied to the clipboard, not just display-only.

    I see this thread is 4 years old, hope this enhancement has waited long enough to be implemented soon! Let us know, thanks. ```

    Reported by `socalbulkforward` on 2011-08-18 20:40:16

  19. Former user Account Deleted

    ``` This is not only important for being able to read numbers, but also for those of us who paste numbers from other sources. Pasting in a number that includes commas (digit grouping in the US) requires me to edit the number before doing a calculations - ugh! Please say that 2012 is the year of interoperability! ;) ```

    Reported by `matt@frosti.us` on 2012-04-27 23:30:24

  20. Former user Account Deleted
    I propose a simple feature for the input-side of this issue that could co-exist with
    any future output-side features: a user-controlled ignored character list. Personally
    I would use it to ignore currency symbols, spaces and commas.
    

    Reported by ethanpooley on 2013-01-01 00:34:21

  21. Former user Account Deleted
    Issue 434 has been merged into this issue.
    

    Reported by helder.pereira.correia on 2013-03-15 20:02:44

  22. Former user Account Deleted
    Got tied of waiting on this and searched latest calcs out there and found a decent free
    replacement called CCCalc, if you don't need a scientific calculator, with tape that
    you can even enter comments for each tape line, and the separator formatting as you
    enter your numbers as well as results/tape display, and stripping off formatting when
    copied to the clipboard - but not stripping off separators pasted from the clipboard
    :(
    
    View Settings let you customize the separator used.
    
    Save the tape to files and will load last file saved to on reopening. 
    Check all program options like General - "On Enter move caret to result of current
    expression" (to allow continued operations on prior result) and font size to get more
    tape on screen. 
    
    Download CCCalc from your favorite trusted download site like cnet and enjoy.
    

    Reported by socalbulkforward on 2013-03-15 21:17:47

  23. Former user Account Deleted
    I made an implementation of that feature (using spaces hidden from copy/paste). Pull
    request sent on GitHub:
    https://github.com/speedcrunch/SpeedCrunch/pull/6
    

    Reported by teyut@free.fr on 2013-08-04 02:29:41

  24. Former user Account Deleted
    Feature added in commit 967d71d thanks to Tey.
    

    Reported by helder.pereira.correia on 2013-08-06 23:49:09 - Status changed: Fixed - Labels added: Milestone-0.11, OpSys-All, Component-UI, Usability

  25. Thelle Christensen

    I can see this is closed - I use v. 0.12 and don’t see digit grouping. Is it really fixed? How do I turn it on?

  26. Helder Correia repo owner

    @Thelle Christensen Make sure you have it enabled in Settings > Behavior > Digit Grouping.

  27. Log in to comment