MATLAB: Precedence of operators – which is correct

arithmeticMATLAB

I am a beginner and would appreciate your help with this.
I need to code a1.JPG
Which of these 2 MATLAB codes would give me the correct answer?
1) a=24.4*10^-9
2) a=24.4*(10^-9)
I think the operators * and ^ fall under different precedence levels, so I am confused as to which operator would be applied first if I used the 1st line of code.
Thanks

Best Answer

The raising to a power happens first. The multiplication happens second.
The two equations should give the same value - try it.
It is NOT a=(24.4*10) ^ (-9)
You could also do
a=24.4e-9
and get the same number. The 10^ can be replaced by E or e.