Discuss Scratch
- Discussion Forums
- » Suggestions
- » decimal of (number) block
- hajhaj12345
- Scratcher
32 posts
decimal of (number) block
so my suggestion is decimal of (number).
How it works:
when you put a number on it it will tell the decimal number
if you're still confused just take a look at this picture
https://prnt.sc/pyxmrv
uses:
if you don't want decimals on your variable just do set to -decimal of
so it makes it easier for removing decimals
it's doesn't have that much of uses but some times it will come in handy
How it works:
when you put a number on it it will tell the decimal number
if you're still confused just take a look at this picture
https://prnt.sc/pyxmrv
uses:
if you don't want decimals on your variable just do set to -decimal of
so it makes it easier for removing decimals
it's doesn't have that much of uses but some times it will come in handy
Last edited by hajhaj12345 (Nov. 19, 2019 08:41:25)
- -CodePro-
- Scratcher
100+ posts
decimal of (number) block
Workaround is easy:
((num) - ([floor v] of (num)))
This is my signature, it appears below my every post. Want to change yours? Use the code below in your browsers console.
this.document.location = "https://scratch.mit.edu/discuss/settings/" + Scratch.INIT_DATA.LOGGED_IN_USER.model.username
The more you do now, the less you need to do later. - Me, and a bunch of other people saying it in slightly different ways.
- DoNotFoIIowMe
- Scratcher
100+ posts
decimal of (number) block
Workaround is easy:((num) - ([floor v] of (num)))
Yeah, we wouldn't need a block for something that easy. I tested it, it works perfectly. Thanks for it, I could use it for my new project (with credits)!
Last edited by DoNotFoIIowMe (Nov. 19, 2019 15:47:09)
~DoNotFoIIowMe~
My name is DoNotFoIIowMe (do not follow me or comment on my profile, you!) and I am a New Scratcher willing to help out on the Scratch community. If you see any of my posts, don't think I'm new myself and that I'm not supposed to be teaching you because I have quite a wide knowledge about Scratch. Just so you know though, following me will ruin my life. People have already disobeyed.
- 45afc4td
- Scratcher
100+ posts
decimal of (number) block
Workaround is easy:((num) - ([floor v] of (num)))
((num) mod (1))
- Discussion Forums
- » Suggestions
- » decimal of (number) block