help me solve a simple math problem
So i was bored and wanted to see if scripts in roblox can solve math problems.
(2*100+15-12/5+2.4*3)
the weirdest thing happened;
Roblox's solve: 219.8
PC Calculator: 129
PC calculator after i tried to make it shorter by dividing and multiplying: 645
Phone Calculator: 162.2.
I'm confused
< >
Showing 1-5 of 5 comments
♥ Xeylo ♥ Sep 16, 2018 @ 3:51am 
Nvm my bad, when i tried to solve it with the pc calculator again after dividing and multiplying it was 219.8 too. but wth is going on with the other methods...
Last edited by ♥ Xeylo ♥; Sep 16, 2018 @ 3:52am
Glimmer Sep 16, 2018 @ 4:06am 
Order of operations

Roblox is treating it as one line
(2*100)+15-(12/5)+(2.4*3)

While entering it by hand you're calculating after each step
((((((2*100)+15)-12)/5)+2.4)*3)
Phantom Sep 16, 2018 @ 5:28am 
https://www.mathsisfun.com/operation-order-pemdas.html

You'll have to grasp that concept before proceeding.

:yinyangflip:
Last edited by Phantom; Sep 16, 2018 @ 5:28am
♥ Xeylo ♥ Sep 16, 2018 @ 5:35am 
xd i know math i was just confused why and how its different in every method
Glimmer Sep 16, 2018 @ 6:38am 
Originally posted by Xeylo:
xd i know math i was just confused why and how its different in every method

Originally posted by Xeylo:
Roblox's solve: 219.8
It's doing the math correctly.

Originally posted by Xeylo:
PC Calculator: 129
Windows's Calculator in Standard mode is solving left to right rather than following PEMDAS. Presumably it's trying to mimic entering by hand and assuming you'd be hitting Enter after each step.
If you place it in Scientific mode it does the math correctly

Originally posted by Xeylo:
PC calculator after i tried to make it shorter by dividing and multiplying: 645
You would need to explain what you actually did.

Originally posted by Xeylo:
Phone Calculator: 162.2.
My tablet gives the answer of 219.8, so not certain what's happening on yours. If I had to a guess I'd assume it's trying to mimic entering by hand similar to Calculator (Standard), and ends up doing the math wrong. You would have to ask somewhere either related to the app or at least your phone's platform. Assuming it's not just a typo/input error.
Last edited by Glimmer; Sep 16, 2018 @ 6:39am
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Sep 16, 2018 @ 3:50am
Posts: 5