Discuss Scratch

Gato_Amigo111
Scratcher
23 posts

Labels

So, I don't like the scratch variable display box and wanted another alternative.

Also, I need a way to simplify numbers. For instance, 1,000,000 would come out as 1 mil. and so on. Does anyone know how to do this?

#SPOS (Stop Politics On Scratch)

-@Gato_Amigo111
I_LOVE_TO_MAKE_STUFF
Scratcher
100+ posts

Labels

World_Languages made a project concerning this. I don't have the link but look at his projects to find it. It should be easy, they don't have too many projects. Hopefully, this helps!

I_LOVE_TO_MAKE_STUFF
I_L_T_M_S
Check out my account here!
I try my best to make the Scratch Community fun and friendly!
Highlight all of the signature and press ctrl+shif+down
I have a github account! I can make Websites!
repeat until <I don't like to make stuff:: sensing>
[make v] stuff because [I love to make stuff v] is my [username v] and [hobby v] for [ever v]:: control
change [stuff made v] by (1)
set [making stuff v] to (true v)
end
Scratch on
if <You think that ((my projects) = (good))> then
go to [my profile v]
go to [random project v]
Send feedback
describe your opinions
end
Gato_Amigo111
Scratcher
23 posts

Labels

That sounds goo, I'll check it out!
-ElectronicArts-
Scratcher
1000+ posts

Labels

Gato_Amigo111 wrote:

So, I don't like the scratch variable display box and wanted another alternative.
you can create it yourself using text engine

AT is cool
I_LOVE_TO_MAKE_STUFF
Scratcher
100+ posts

Labels

-ElectronicArts- wrote:

Gato_Amigo111 wrote:

So, I don't like the scratch variable display box and wanted another alternative.
you can create it yourself using text engine
Read the OP thoroughly. They're asking how to convert multi-digit numbers into strings because they are clearly having trouble doing so. Read the example too.

Last edited by I_LOVE_TO_MAKE_STUFF (Jan. 13, 2022 01:45:05)


I_LOVE_TO_MAKE_STUFF
I_L_T_M_S
Check out my account here!
I try my best to make the Scratch Community fun and friendly!
Highlight all of the signature and press ctrl+shif+down
I have a github account! I can make Websites!
repeat until <I don't like to make stuff:: sensing>
[make v] stuff because [I love to make stuff v] is my [username v] and [hobby v] for [ever v]:: control
change [stuff made v] by (1)
set [making stuff v] to (true v)
end
Scratch on
if <You think that ((my projects) = (good))> then
go to [my profile v]
go to [random project v]
Send feedback
describe your opinions
end
-ElectronicArts-
Scratcher
1000+ posts

Labels


if <(foo) = (1000000)> then
set [foo v] to [1 M]
end

Gato_Amigo111 wrote:

Also, I need a way to simplify numbers. For instance, 1,000,000 would come out as 1 mil. and so on. Does anyone know how to do this?

AT is cool
MagicCrayon9342
Scratcher
1000+ posts

Labels

-ElectronicArts- wrote:

if <(foo) = (1000000)> then
set [foo v] to [1 M]
end

Gato_Amigo111 wrote:

Also, I need a way to simplify numbers. For instance, 1,000,000 would come out as 1 mil. and so on. Does anyone know how to do this?
then he would have to do that for 2 mil, 3 mil manually which isn't efficient I'd know because I have unneccesary amounts of functions for basic tasks.

Tired of the mainstream browsers being so darn slow, taking so much RAM on your super old laptop. Well, Catalyst is the solution. It is a zero compromise browser that will run on anything! Available for Windows, MacOS, and Linux! It is super fast and customizable with a fresh and modern UI!!!.

Always use the latest version of an antivirus. To get the latest security and protection, it is also recommended to use the latest version of MacOS or one that get's security patches. Update your software or you will regret it, and you will have several risks waiting for you.

I_LOVE_TO_MAKE_STUFF
Scratcher
100+ posts

Labels

MagicCrayon9342 wrote:

-ElectronicArts- wrote:

if <(foo) = (1000000)> then
set [foo v] to [1 M]
end

Gato_Amigo111 wrote:

Also, I need a way to simplify numbers. For instance, 1,000,000 would come out as 1 mil. and so on. Does anyone know how to do this?
then he would have to do that for 2 mil, 3 mil manually which isn't efficient I'd know because I have unneccesary amounts of functions for basic tasks.
Yep, it would be better to use something like this:
if <<(length of (foo)) = [7]> or <(length of (foo)) > [7]>> then
set [foo v] to (join (letter (1) of (foo)) [million])
end
or anything in that fashion. Hopefully this helps!

I_LOVE_TO_MAKE_STUFF
I_L_T_M_S
Check out my account here!
I try my best to make the Scratch Community fun and friendly!
Highlight all of the signature and press ctrl+shif+down
I have a github account! I can make Websites!
repeat until <I don't like to make stuff:: sensing>
[make v] stuff because [I love to make stuff v] is my [username v] and [hobby v] for [ever v]:: control
change [stuff made v] by (1)
set [making stuff v] to (true v)
end
Scratch on
if <You think that ((my projects) = (good))> then
go to [my profile v]
go to [random project v]
Send feedback
describe your opinions
end
Scratch137
Scratcher
500+ posts

Labels

I_LOVE_TO_MAKE_STUFF wrote:

Yep, it would be better to use something like this:
if <<(length of (foo)) = [7]> or <(length of (foo)) > [7]>> then
set [foo v] to (join (letter (1) of (foo)) [million])
end
or anything in that fashion. Hopefully this helps!
Also, if you'd like to add a decimal for a bit more detail, then something like this should work:

if <<(length of (foo)) = [7]> or <(length of (foo)) > [7]>> then
if <(letter (2) of (foo)) > [0]> then
set [foo v] to (join (foo) (join (.) (letter (2) of (join (foo) [ million])))
else
set [foo v] to (join (letter (1) of (foo)) [ million])
end

1000000 = 1 million
1500000 = 1.5 million

.

.



_Scratch_____________ocular_____________postpercent_____________GitHub

.


Banner font is Cascadia Code

Za-Chary wrote:

No kissy kiss
No stabby stab

Them's the rulez..

And it was then that a single pixelated tear was shed by the cubeupload example image, and all of a sudden he discovered that he was no longer just an example image, soon to be deleted, but a real living boy!
as the jingle goes: gimme a break, gimme a break, break me off a piece of that —cubeupload example image


Be moist

;
I_LOVE_TO_MAKE_STUFF
Scratcher
100+ posts

Labels

Scratch137 wrote:

I_LOVE_TO_MAKE_STUFF wrote:

Yep, it would be better to use something like this:
if <<(length of (foo)) = [7]> or <(length of (foo)) > [7]>> then
set [foo v] to (join (letter (1) of (foo)) [million])
end
or anything in that fashion. Hopefully this helps!
Also, if you'd like to add a decimal for a bit more detail, then something like this should work:

if <<(length of (foo)) = [7]> or <(length of (foo)) > [7]>> then
if <(letter (2) of (foo)) > [0]> then
set [foo v] to (join (foo) (join (.) (letter (2) of (join (foo) [ million])))
else
set [foo v] to (join (letter (1) of (foo)) [ million])
end

1000000 = 1 million
1500000 = 1.5 million
Yop, more accuracy

I_LOVE_TO_MAKE_STUFF
I_L_T_M_S
Check out my account here!
I try my best to make the Scratch Community fun and friendly!
Highlight all of the signature and press ctrl+shif+down
I have a github account! I can make Websites!
repeat until <I don't like to make stuff:: sensing>
[make v] stuff because [I love to make stuff v] is my [username v] and [hobby v] for [ever v]:: control
change [stuff made v] by (1)
set [making stuff v] to (true v)
end
Scratch on
if <You think that ((my projects) = (good))> then
go to [my profile v]
go to [random project v]
Send feedback
describe your opinions
end
Gato_Amigo111
Scratcher
23 posts

Labels

nice help, everyone, I may add this in the future to my projects.
CST1229
Scratcher
1000+ posts

Labels

I made a customizable number simplifier that limits decimals to 2 digits here.
Use it like this:

And the number is stored in the “shortened” variable.

This is a signature. It's text that appears below each post I write. Click here to make your own. And use Shift+Down to see more if you're on Chrome.


Stuff I made
All emojis usable in the forums and in comments

⌚️⏰⏱️⏲️⌨️☎️⌛️⚖️⚙️✉️✂️✒️☂️✏️☕️♟️⚰️⚱️⛏️⚔️⚒️⛓️⚗️⛑️
⭐️✨⚡️☄️☀️⛅️☁️⛈️⛄️❄️☔️☘️
☹️✌️☝️✍️✋☺️
⚽️⚾️⛳️⛹️⛷️⛸️
✈️⛵️Ⓜ️⚓️⛽️⛲️⛺️⛪️⛰️⛱️⛴️⛩️♨️
❗️❕❓❔©️®️‼️⁉️™️➕➖➗✖️⛔⭕❌✔️〰️〽️⚠️
☑️✅❎▶️⏩⏪⏫⏬ℹ️⏭️⏮️⏯️⏏️◀️➡️⬅️⬆️⬇️↗️↘️↙️↖️↪️↩️⤴️⤵️✳️✴️❇️㊗️㊙️
⚕️☦️♾️⚛️⛎️✝️☪️☮️☯️☸️♈️♉️♊️♋️♌️♍️♎️♏️♐️♑️♒️♓️
❤️❣️♠️♣️♥️♦️♀️♂️♻️☢️☣️⚜️➰️➿️☠️
⬛️⬜️⚪️⚫️▪️▫️◻️◼️◽️

Copy-paste as you wish! No credit needed.
Some assets for use in posts
Globe button
[img]https://cdn.scratch.mit.edu/scratchr2/static/__73c73bf495827f55759847fac6191e53__//djangobb_forum/img/browser-os.png[/img]
Gato_Amigo111
Scratcher
23 posts

Labels

Thanks for all the help everyone!

Powered by DjangoBB

Standard | Mobile