Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Labels
- Gato_Amigo111
- Scratcher
500+ 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
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'm Gato! I'm a treckie coder who loves scratch! Highligh+Shift+Down for the rest of my signature… #SPOS (Stop Politics On Scratch)! I'm playing Death's Door and Hollow Knight, FYI. Active on the forums, with over 800 posts. Proud Forum Participators' manager. Stop by Gato's Forum Pals! Cool game I made (takes some time to load). Please join our sacred society. I F4F, comment on my profile.
{MY EVIL KUMQUAT PROTECTION WALL}
Death is the strongest force.
ɪ ᴀꜱᴋᴇᴅ ᴊᴇꜱᴜꜱ “ʜᴏᴡ ᴍᴜᴄʜ ᴅᴏ ʏᴏᴜ ʟᴏᴠᴇ ᴍᴇ?” ʜᴇ ꜱᴀɪᴅ ᴛʜɪꜱ ᴍᴜᴄʜ. ʜᴇ ꜱᴛʀᴇᴛᴄʜᴇᴅ ᴏᴜᴛ ʜɪꜱ ᴀʀᴍꜱ ᴏɴ ᴛʜᴇ ᴄʀᴏꜱꜱ ᴀɴᴅ ᴅɪᴇᴅ ꜰᴏʀ ᴍᴇ. ᴘᴜᴛ ᴛʜɪꜱ ᴏɴ ʏᴏᴜʀ ᴘʀᴏꜰɪʟᴇ (or you're siggy) ɪꜰ ʏᴏᴜ ʟᴏᴠᴇ ᴊᴇꜱᴜꜱ.
stop
no
bad
srsly…
NO!!!
ok fine…
I'm very afraid of furries.
Roses are red,
Violets are blue,
I'm in your house,
So look behind you…
Sleepy time. :D
ඞ he lives
What possessed you to scroll this far?
- I_LOVE_TO_MAKE_STUFF
- Scratcher
1000+ 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!
press ctrl+shift+down to see my full siggy!
1000th post
Scratch Team, please add targeted links for the forums!
FIRST EVER SCRATCH PROJECT!!!!!!! IT'S HISTORY!
I have a github account! I can make Websites!
People in the suggestions forums:
YOU MUST READ THIS!!!!
Check out The Forum Helpers!
#StandwithUkraine I am Ukrainian, and lots of my family lives there, please pray for Ukraine
Helpful emoji: ███
- Gato_Amigo111
- Scratcher
500+ posts
Labels
That sounds goo, I'll check it out!
I'm Gato! I'm a treckie coder who loves scratch! Highligh+Shift+Down for the rest of my signature… #SPOS (Stop Politics On Scratch)! I'm playing Death's Door and Hollow Knight, FYI. Active on the forums, with over 800 posts. Proud Forum Participators' manager. Stop by Gato's Forum Pals! Cool game I made (takes some time to load). Please join our sacred society. I F4F, comment on my profile.
{MY EVIL KUMQUAT PROTECTION WALL}
Death is the strongest force.
ɪ ᴀꜱᴋᴇᴅ ᴊᴇꜱᴜꜱ “ʜᴏᴡ ᴍᴜᴄʜ ᴅᴏ ʏᴏᴜ ʟᴏᴠᴇ ᴍᴇ?” ʜᴇ ꜱᴀɪᴅ ᴛʜɪꜱ ᴍᴜᴄʜ. ʜᴇ ꜱᴛʀᴇᴛᴄʜᴇᴅ ᴏᴜᴛ ʜɪꜱ ᴀʀᴍꜱ ᴏɴ ᴛʜᴇ ᴄʀᴏꜱꜱ ᴀɴᴅ ᴅɪᴇᴅ ꜰᴏʀ ᴍᴇ. ᴘᴜᴛ ᴛʜɪꜱ ᴏɴ ʏᴏᴜʀ ᴘʀᴏꜰɪʟᴇ (or you're siggy) ɪꜰ ʏᴏᴜ ʟᴏᴠᴇ ᴊᴇꜱᴜꜱ.
stop
no
bad
srsly…
NO!!!
ok fine…
I'm very afraid of furries.
Roses are red,
Violets are blue,
I'm in your house,
So look behind you…
Sleepy time. :D
ඞ he lives
What possessed you to scroll this far?
- I_LOVE_TO_MAKE_STUFF
- Scratcher
1000+ posts
Labels
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.you can create it yourself using text engine So, I don't like the scratch variable display box and wanted another alternative.
Last edited by I_LOVE_TO_MAKE_STUFF (Jan. 13, 2022 01:45:05)
press ctrl+shift+down to see my full siggy!
1000th post
Scratch Team, please add targeted links for the forums!
FIRST EVER SCRATCH PROJECT!!!!!!! IT'S HISTORY!
I have a github account! I can make Websites!
People in the suggestions forums:
YOU MUST READ THIS!!!!
Check out The Forum Helpers!
#StandwithUkraine I am Ukrainian, and lots of my family lives there, please pray for Ukraine
Helpful emoji: ███
- MagicCrayon9342
- Scratcher
1000+ posts
Labels
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.if <(foo) = (1000000)> then
set [foo v] to [1 M]
endAlso, 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?
- I_LOVE_TO_MAKE_STUFF
- Scratcher
1000+ posts
Labels
Yep, it would be better to use something like 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.if <(foo) = (1000000)> then
set [foo v] to [1 M]
endAlso, 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?
if <<(length of (foo)) = [7]> or <(length of (foo)) > [7]>> thenor anything in that fashion. Hopefully this helps!
set [foo v] to (join (letter (1) of (foo)) [million])
end
press ctrl+shift+down to see my full siggy!
1000th post
Scratch Team, please add targeted links for the forums!
FIRST EVER SCRATCH PROJECT!!!!!!! IT'S HISTORY!
I have a github account! I can make Websites!
People in the suggestions forums:
YOU MUST READ THIS!!!!
Check out The Forum Helpers!
#StandwithUkraine I am Ukrainian, and lots of my family lives there, please pray for Ukraine
Helpful emoji: ███
- Scratch137
- Scratcher
1000+ posts
Labels
Also, if you'd like to add a decimal for a bit more detail, then something like this should work: Yep, it would be better to use something like this:if <<(length of (foo)) = [7]> or <(length of (foo)) > [7]>> thenor anything in that fashion. Hopefully this helps!
set [foo v] to (join (letter (1) of (foo)) [million])
end
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
- I_LOVE_TO_MAKE_STUFF
- Scratcher
1000+ posts
Labels
Yop, more accuracyAlso, if you'd like to add a decimal for a bit more detail, then something like this should work: Yep, it would be better to use something like this:if <<(length of (foo)) = [7]> or <(length of (foo)) > [7]>> thenor anything in that fashion. Hopefully this helps!
set [foo v] to (join (letter (1) of (foo)) [million])
endif <<(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
press ctrl+shift+down to see my full siggy!
1000th post
Scratch Team, please add targeted links for the forums!
FIRST EVER SCRATCH PROJECT!!!!!!! IT'S HISTORY!
I have a github account! I can make Websites!
People in the suggestions forums:
YOU MUST READ THIS!!!!
Check out The Forum Helpers!
#StandwithUkraine I am Ukrainian, and lots of my family lives there, please pray for Ukraine
Helpful emoji: ███
- Gato_Amigo111
- Scratcher
500+ posts
Labels
nice help, everyone, I may add this in the future to my projects.
I'm Gato! I'm a treckie coder who loves scratch! Highligh+Shift+Down for the rest of my signature… #SPOS (Stop Politics On Scratch)! I'm playing Death's Door and Hollow Knight, FYI. Active on the forums, with over 800 posts. Proud Forum Participators' manager. Stop by Gato's Forum Pals! Cool game I made (takes some time to load). Please join our sacred society. I F4F, comment on my profile.
{MY EVIL KUMQUAT PROTECTION WALL}
Death is the strongest force.
ɪ ᴀꜱᴋᴇᴅ ᴊᴇꜱᴜꜱ “ʜᴏᴡ ᴍᴜᴄʜ ᴅᴏ ʏᴏᴜ ʟᴏᴠᴇ ᴍᴇ?” ʜᴇ ꜱᴀɪᴅ ᴛʜɪꜱ ᴍᴜᴄʜ. ʜᴇ ꜱᴛʀᴇᴛᴄʜᴇᴅ ᴏᴜᴛ ʜɪꜱ ᴀʀᴍꜱ ᴏɴ ᴛʜᴇ ᴄʀᴏꜱꜱ ᴀɴᴅ ᴅɪᴇᴅ ꜰᴏʀ ᴍᴇ. ᴘᴜᴛ ᴛʜɪꜱ ᴏɴ ʏᴏᴜʀ ᴘʀᴏꜰɪʟᴇ (or you're siggy) ɪꜰ ʏᴏᴜ ʟᴏᴠᴇ ᴊᴇꜱᴜꜱ.
stop
no
bad
srsly…
NO!!!
ok fine…
I'm very afraid of furries.
Roses are red,
Violets are blue,
I'm in your house,
So look behind you…
Sleepy time. :D
ඞ he lives
What possessed you to scroll this far?
- 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.
Use it like this:
And the number is stored in the “shortened” variable.
This is a signature. It's a piece of text that appears below every post I write. Click here to learn more, including how to make your own.
RIP assets image hosting. 2013?-2023
RIP assets image hosting. 2013?-2023
- Gato_Amigo111
- Scratcher
500+ posts
Labels
Thanks for all the help everyone!
I'm Gato! I'm a treckie coder who loves scratch! Highligh+Shift+Down for the rest of my signature… #SPOS (Stop Politics On Scratch)! I'm playing Death's Door and Hollow Knight, FYI. Active on the forums, with over 800 posts. Proud Forum Participators' manager. Stop by Gato's Forum Pals! Cool game I made (takes some time to load). Please join our sacred society. I F4F, comment on my profile.
{MY EVIL KUMQUAT PROTECTION WALL}
Death is the strongest force.
ɪ ᴀꜱᴋᴇᴅ ᴊᴇꜱᴜꜱ “ʜᴏᴡ ᴍᴜᴄʜ ᴅᴏ ʏᴏᴜ ʟᴏᴠᴇ ᴍᴇ?” ʜᴇ ꜱᴀɪᴅ ᴛʜɪꜱ ᴍᴜᴄʜ. ʜᴇ ꜱᴛʀᴇᴛᴄʜᴇᴅ ᴏᴜᴛ ʜɪꜱ ᴀʀᴍꜱ ᴏɴ ᴛʜᴇ ᴄʀᴏꜱꜱ ᴀɴᴅ ᴅɪᴇᴅ ꜰᴏʀ ᴍᴇ. ᴘᴜᴛ ᴛʜɪꜱ ᴏɴ ʏᴏᴜʀ ᴘʀᴏꜰɪʟᴇ (or you're siggy) ɪꜰ ʏᴏᴜ ʟᴏᴠᴇ ᴊᴇꜱᴜꜱ.
stop
no
bad
srsly…
NO!!!
ok fine…
I'm very afraid of furries.
Roses are red,
Violets are blue,
I'm in your house,
So look behind you…
Sleepy time. :D
ඞ he lives
What possessed you to scroll this far?
- Discussion Forums
- » Advanced Topics
- » Labels