Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » Need help with scratch numbers.
- ryozer4
- New to Scratch
3 posts
Need help with scratch numbers.
Ok so I like making games that involve larger numbers like for instance 5 million, and in scratch it shows it as 5000000, is there any way to put commas in the numbers?
- ScolderCreations
- Scratcher
1000+ posts
Need help with scratch numbers.
No, because scratch will get confused when you do that. However, you could write some code that makes a version of the number that has commas, but you should only use commas when you're displaying a number, and not actually using it in code.
- 10goto10
- Scratcher
500+ posts
Need help with scratch numbers.
Ok so I like making games that involve larger numbers like for instance 5 million, and in scratch it shows it as 5000000, is there any way to put commas in the numbers?
I found this as an example of something that formats numbers. https://scratch.mit.edu/projects/274413232/
As I recall, the problem is that different countries format their numbers different ways.
Do you have an Animate a Name project that you'd like to have added to a studio? Please leave a comment in this studio.
- vudeptrai090211
- Scratcher
1000+ posts
Need help with scratch numbers.
Yes, in Vietnam, we usually write “six point seven” as 6,7 (we use a comma instead of a point)Ok so I like making games that involve larger numbers like for instance 5 million, and in scratch it shows it as 5000000, is there any way to put commas in the numbers?
I found this as an example of something that formats numbers. https://scratch.mit.edu/projects/274413232/
As I recall, the problem is that different countries format their numbers different ways.
and we read it as “sáu (six) phẩy (comma) bảy (seven)”
And the machine doesn't work for decimals.
Don't think this is a part of my posts, this is my signature. You can see how to change/add a signature here.
Highlight + ctrl (cmd) + shift + down to see my full signature
I don't work very much on forums anymore. Now, I love making projects!
Links:
ACCOUNTS: Alt Test Animate
PROJECTS: Space Dodger Tiny Ball's Adventure Epic Catch Game Potion Clicker
STUDIOS: Fanbase
congrats! you've reached the end of this signature!
win this challenge to have a wish!
- ryozer4
- New to Scratch
3 posts
Need help with scratch numbers.
Ok so I like making games that involve larger numbers like for instance 5 million, and in scratch it shows it as 5000000, is there any way to put commas in the numbers?
I found this as an example of something that formats numbers. https://scratch.mit.edu/projects/274413232/
As I recall, the problem is that different countries format their numbers different ways.
I'll try using this and say if it works or not, It's not gonna be used in a game incase it breaks it.
- ryozer4
- New to Scratch
3 posts
Need help with scratch numbers.
I'll need a version in which I can change the input tho.
- ScolderCreations
- Scratcher
1000+ posts
Need help with scratch numbers.
If you want a version where you can change a certain value, just remix the project, and change the code to let you do that.
- Discussion Forums
- » Questions about Scratch
- » Need help with scratch numbers.