Separating Math calculation

34 views
Skip to first unread message
Assigned to taifu...@gmail.com by me

nila...@googlemail.com

unread,
Feb 22, 2014, 4:24:02 PM2/22/14
to mitappinv...@googlegroups.com

Using MIT App inventor 2 for the first time.
I'm trying to do set up a math calculation thread when button is clicked. The app is currently doing the calc in order of the equation, but I want to be able to split it up to do certain calculations first before doing other bits (in excel you would use () to do this). Anyone know how to arrange the blocks to be able to get the calculations in the order it needs to calculate?
Would be grateful for any suggestions.
Many thanks



Please SEARCH in this forum before posting your question.   There's a good chance your question has already been asked.

If you are asking for technical help, you must provide the following information:
- Are you using MIT App Inventor Classic, MIT App Inventor 2, or something else (what?)
- What OS are you using? (e.g, MacOS 1.8, Windows 8, ...)
- What browser are you using (e.g, Chrome version 30, Firefox 24, IE 8, ...)
Also provide as much information as you can, such as screenshots and instructions that will let others duplicate the issue.

Taifun

unread,
Feb 22, 2014, 4:38:16 PM2/22/14
to mitappinv...@googlegroups.com, nila...@googlemail.com
just use nested blocks as you need it
for example this is (4+5)*6
Taifun

Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by Taifun.         


nila...@googlemail.com

unread,
Feb 24, 2014, 7:11:26 AM2/24/14
to mitappinv...@googlegroups.com, nila...@googlemail.com
Super thank you :)







Reply all
Reply to author
Forward
0 new messages