Discuss Scratch

Bacon_General
New Scratcher
1 post

Adding Commas To Numbers Exceeding 1k (18 of 19 Supports!)

I support! We need commas!
TopicBumper
New Scratcher
100+ posts

Adding Commas To Numbers Exceeding 1k (18 of 19 Supports!)

Bump.

My biggest fear? Being revered by some, despised by most, and forgotten by all, and it looks like that's the route I'm heading.
fdreerf
Scratcher
1000+ posts

Adding Commas To Numbers Exceeding 1k (18 of 19 Supports!)

Another reason I want this is because numbers over 1000000 get ridiculously hard to read so I have to count each digit to know what I'm looking at.

Last edited by fdreerf (Feb. 26, 2021 05:38:57)

the2000
Scratcher
1000+ posts

Adding Commas To Numbers Exceeding 1k (18 of 19 Supports!)

I agree that adding commas to numbers would increase readability. It wouldn't be difficult to write the script for this either; I'm pretty sure I have done it before.
-Quantum_Studios-
Scratcher
500+ posts

Adding Commas To Numbers Exceeding 1k (18 of 19 Supports!)

TheHockeyist wrote:

No support. Use spaces or scientific notation instead. Commas are ambiguous, as some countries use a decimal point instead.

5.785 = 5 thousand 785 for these people.

Likewise, the comma is sometimes used for the decimal point.

5,785 = 5 + 785/1000.

Use spaces for thousands, or scientific notation (150000000000000 = 1.5e+14). Use the decimal point only, and leave it at that.
Yeah, I want my project to have 4.2x10⁴ views because that's totally not confusing to New Scratchers!
I_LOVE_TO_MAKE_STUFF
Scratcher
1000+ posts

Adding Commas To Numbers Exceeding 1k (18 of 19 Supports!)

Support! this would make the site more kid-friendly and it would be easier to round to the nearest millions/thousands.
6d66yh
Scratcher
100+ posts

Adding Commas To Numbers Exceeding 1k (18 of 19 Supports!)

-Quantum_Studios- wrote:

TheHockeyist wrote:

No support. Use spaces or scientific notation instead. Commas are ambiguous, as some countries use a decimal point instead.

5.785 = 5 thousand 785 for these people.

Likewise, the comma is sometimes used for the decimal point.

5,785 = 5 + 785/1000.

Use spaces for thousands, or scientific notation (150000000000000 = 1.5e+14). Use the decimal point only, and leave it at that.
Yeah, I want my project to have 4.2x10⁴ views because that's totally not confusing to New Scratchers!
I think scientific notation will be much more intuitive for New Scratchers than too many digits, so it actually makes sense. Also use scientific notation when the exponent gets to -2 and below (below 0.01 and above -0.01), so as to avoid having ‘0.00…’ (in other words, have no more than one zero after the decimal point after 0 or -0).
No support for thousands, etc. separators, but support for earlier scientific notation (especially for the numerical monitors which already have reduced visual precision).

Last edited by 6d66yh (Jan. 13, 2022 20:05:52)

Jackson49_test
Scratcher
100+ posts

Adding Commas To Numbers Exceeding 1k (18 of 19 Supports!)

Bump
SuperMarioHome
Scratcher
100+ posts

Adding Commas To Numbers Exceeding 1k (18 of 19 Supports!)

Let's say a project has 123456789 views. 1.23456789e+8 would be hard for new users to understand, right? Maybe scientific notation isn't the best idea.
emanthecool
Scratcher
1 post

Adding Commas To Numbers Exceeding 1k (18 of 19 Supports!)

wha
k7e
Scratcher
1000+ posts

Adding Commas To Numbers Exceeding 1k (18 of 19 Supports!)

In code, this would break the projects that use the letter block and the length of block, so the mathematical reporter blocks should not report numbers with commas.
chriscreators14
Scratcher
500+ posts

Adding Commas To Numbers Exceeding 1k (18 of 19 Supports!)

Maybe we could add a block, because using commas may break some projects:
(convert number (100) to [,] delimiting
ajskateboarder
Scratcher
1000+ posts

Adding Commas To Numbers Exceeding 1k (18 of 19 Supports!)

Support, readability counts. There would be a lot of localization required, but fun fact: this exists

chriscreators14 wrote:

Maybe we could add a block, because using commas may break some projects:
(convert number (100) to [,] delimiting

k7e wrote:

In code, this would break the projects that use the letter block and the length of block, so the mathematical reporter blocks should not report numbers with commas.
This is for adding commas/periods to project statistics, not for numbers in the editor

Last edited by ajskateboarder (Nov. 13, 2023 13:24:17)

cookieclickerer33
Scratcher
1000+ posts

Adding Commas To Numbers Exceeding 1k (18 of 19 Supports!)

Edit: I can’t believe I didn’t read the op dang it

Last edited by cookieclickerer33 (Nov. 13, 2023 13:08:24)

PaperMarioFan2022
Scratcher
1000+ posts

Adding Commas To Numbers Exceeding 1k (18 of 19 Supports!)

Support. We definitely need more commas to emphasize our statements.

Powered by DjangoBB