Discuss Scratch

arvepro3579
Scratcher
100+ posts

Math input problem.

So ST, a weird and very confusing thing happened. Before, I could type in a “+” in a math input:
(() + (0))
(() - (0))
(() * (0))
(() / (0))
Like this:
((5) - (+1))
(not a variable)
Before, it returned to 6, which was good. Now I cannot type in a + anymore!
If I paste in a +, and do the same, it returns to 4! This has broken many projects.
Please fix this, and if it's not a bug please say the reason.

Last edited by arvepro3579 (May 10, 2021 14:28:07)


Not on scratch very often
sergiohk2
Scratcher
75 posts

Math input problem.

Hi,

How long have you not tried to do it? Because he has never let me put a +.

But still it's silly 5 - + 1 = 5-1 = 4, “- +” = -. PURE MATH
That's why maybe it doesn't come out because 5 - + 1 is 4 and it couldn't have worked for you before, it will be another problem.

Bie

arvepro3579
Scratcher
100+ posts

Math input problem.

sergiohk2 wrote:

Hi,

How long have you not tried to do it? Because he has never let me put a +.

But still it's silly 5 - + 1 = 5-1 = 4, “- +” = -. PURE MATH
That's why maybe it doesn't come out because 5 - + 1 is 4 and it couldn't have worked for you before, it will be another problem.

Bie


Imagine having a very long operator reporter, and you notice that you need a ( )+( ) block instead of a ( )-( ) block. It will be a high risk of mistakenly delete blocks, and mess up code. You cannot right click and change it either.

Not on scratch very often
sergiohk2
Scratcher
75 posts

Math input problem.

hi,

Already good but always - and + is - would not help you at all, only if you had (4) - (-1) there the sign would change and it would be - and - = +. A + will never change the operation if there is a - next to it, it will remain -.

bie

Visit my My new game and My profile

Last edited by sergiohk2 (May 10, 2021 15:01:08)

arvepro3579
Scratcher
100+ posts

Math input problem.

sergiohk2 wrote:

hi,

Already good but always - and + is - would not help you at all, only if you had (4) - (-1) there the sign would change and it would be - and - = +. A + will never change the operation if there is a - next to it, it will remain -.

bie


(5)-(+1) is basically 5-0+1, so i don't think that you're really right. Look here:
set [Variable v] to (((((((pick random ([sin v] of (Time tick)) to (21)) - ()) * (2)) / (32)) * (varible 3)) - (0)) + (0))

It would be hard to change something like that, and it's a risk of putting stuff in wrong places. My logic is that (5)-( ) =5 That's why (5)-(+1) would be six. Also it made so that loads of projects do wrong stuff now. The + Replaces the -. I understand that you don't agree though.as

Not on scratch very often
sergiohk2
Scratcher
75 posts

Math input problem.

I think you are wrong friend … Put in a calculator 5- + 1, you will not get 6 or 5, you will get 4 proqué - + = -.
sergiohk2
Scratcher
75 posts

Math input problem.

If you do not believe me…
arvepro3579
Scratcher
100+ posts

Math input problem.

sergiohk2 wrote:

If you do not believe me…

I guess you are right.

Not on scratch very often

Powered by DjangoBB