That one backfired.
This will work
![]()
It is shorter. (don’t mind the repeating digits if there are any)
This one will work it is way shorter the first version.
![]()
I feel like doing division with all these decimals and fractional fractions isn’t a great way to do this. You might have more success if you multiply the quotient and divisor by a large number so that the division doesn’t lose as much presision
Okay so then
![]()
It is shorter than the first one.
I can’t drag this into snap. Could you share the image as a script pic instead of result pic?
Okay.
![]()
I noticed that you are using a lot of global variables. Usually, you don’t want this, especially if you have multiple scripts with the same custom block. Instead, use the script variables block to create temporary variables in the custom block!
Fine fine.
Well it also means now you can export the block.
Off topic
Well I’ve lied if you put n at the end of numbers in JavaScript it lets as many digits wanted
Yes, but it must be an integer.
Yes
typing one character into the input doesnt work
this block doesn’t return a list (which is required for the rest of your code to work) if the input is only one character
I think one time I attempt encryption, but I was tired of it but now I made these! feel free to use them!
Then put a list around the single letter that is what I did.
But I fixed it.




