New math related block

ok, almost done, but is super slow (since there is a lot of blocks.). I need to speed it up.
but anyway, here's the project (i also think im making it too complicated)

Function thatthingOfWhichiFORGOT(place, mainnum){

var a = mainnum.split("");
Var b = a[place];
return b*(10**place);
}
A slightly simpler, in js version. I think it might have a problem bc it might jot be string, but just convert it to snap version

Just realized something, so working on decimals

Talking abt that

yes

I made this custom block that works pretty well:

You might need to zoom in to see it.

Maybe just recapture or crop it to the size of the blocks themselves? :slight_smile:

To be honest, I have no idea how to do that.

What sort of computerOS are you using Chromebook, Mac, Windows or Linux?

Actually, just try right-clicking on the hat inside the Block Editor and select script pic to just get an image of the blocks themselves

image

Then you can edit your original post and replace the image with the new one

Okay.
Collection of cool new blocks script pic

since you're using chrome os you can press ctrl+shift+f5 to take a partial screenshot, with f5 being the "switch windows" button the one with a rectangle and some lines to the right of it (on my chromebook)

that's basically what @programmer_user said, but

hi! I just found a solution:


from the list library:
and then
or if you don't want to copy it: project

great!

thanks! it works with negative numbers, AND decimals!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.