Discuss Scratch

HaydenAgain
Scratcher
100+ posts

Bin (Binary) of

Bin of block. Can scratch add this block?
(Block broken)
([bin v] of ())
How it works:
When you type 2, it reports 10. When you type 5, it will report 101.
Type: Operators

Last edited by HaydenAgain (Aug. 7, 2022 12:15:41)

-Valtren-
Scratcher
1000+ posts

Bin (Binary) of

semi-support. while this would somehow be useful I can't think of a single thing where I would need binary
it'll also be confusing for new users and has no real use
yavuz61035
Scratcher
500+ posts

Bin (Binary) of

maybe base-2 instead of bin?
this would be useful for projects where you need to convert to binary
also maybe a base-10 converter?
banana439monkey
Scratcher
1000+ posts

Bin (Binary) of

to go from there…
([bin v] of []:: operators) 
([ASCII v] of [] :: operators)
([unicode v] of [] :: operators)
possibly?

Banana

Last edited by banana439monkey (Aug. 9, 2022 19:59:00)

SonicFanX123_321
Scratcher
1000+ posts

Bin (Binary) of

banana439monkey wrote:

to go from there…
([bin v] of []:: operators) 
([ASCII v] of [] :: operators)
([unicode v] of [] :: operators)
possibly?

Banana
([hex v] of [] :: operators)
([oct v] of [] :: operators)

Last edited by SonicFanX123_321 (Aug. 11, 2022 11:47:06)

gilbert_given_189
Scratcher
1000+ posts

Bin (Binary) of

(necro)Bumping this topic about base conversions.
It would be nice if there's the reverse as well:
(() to [binary v] :: operators)
(() to [octal v] :: operators)
(() to [hex v] :: operators)
Edit: Wait, that's the suggestion! I should've read it better.

Last edited by gilbert_given_189 (Feb. 22, 2025 06:10:00)

Elijah999999
Scratcher
1000+ posts

Bin (Binary) of

This would be very nice, but it would also be nice to have the ability to convert it between any base.
(convert [] from base [] to base [] :: operators)
AvidOsirianGuy
Scratcher
100+ posts

Bin (Binary) of

[#1b37da] to hex :: sensing reporter
hex of [#49e84b] :: sensing reporter
Better HEX block concepts, I guess.
han614698
Scratcher
1000+ posts

Bin (Binary) of

AvidOsirianGuy wrote:

[#1b37da] to hex :: sensing reporter
hex of [#49e84b] :: sensing reporter
Better HEX block concepts, I guess.
Good idea but:
1. That is completely unrelated to this suggestion.
2. Those blocks are functionally useless because you couldn’t put in your own input. They’re just constants and Scratch has previously rejected constant blocks for the reason that you can do it yourself ahead of time.
AvidOsirianGuy
Scratcher
100+ posts

Bin (Binary) of

han614698 wrote:

(#9)

AvidOsirianGuy wrote:

[#1b37da] to hex :: sensing reporter
hex of [#49e84b] :: sensing reporter
Better HEX block concepts, I guess.
Good idea but:
1. That is completely unrelated to this suggestion.
2. Those blocks are functionally useless because you couldn’t put in your own input. They’re just constants and Scratch has previously rejected constant blocks for the reason that you can do it yourself ahead of time.
oh
medians
Scratcher
1000+ posts

Bin (Binary) of

Elijah999999 wrote:

This would be very nice, but it would also be nice to have the ability to convert it between any base.
(convert [] from base [] to base [] :: operators)
You can convert 2/8/16 to 10 or decimal, as bases are actually supported lol:
(join [0x] (num to convert::grey)) + (0)
You can change the “x” to b for binary and o for octal

Last edited by medians (Feb. 22, 2025 03:54:22)

Powered by DjangoBB