How is it 9*(1/2) and and 3.0 is came ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How is it 9*(1/2) and and 3.0 is came ?

29th Jul 2017, 5:12 PM
Vivek Rajliwal
Vivek Rajliwal - avatar
2 Answers
+ 8
9**(1/2)==3 9**(1/2)=9^(1/2)=9^.5=sqrt(9)=3. Float 3.0
29th Jul 2017, 5:26 PM
J.G.
J.G. - avatar
+ 3
9*(1/2) does not equal 3.0, it equals 4.5 As J.G. says 9**(1/2) = 3.0 9**(1/2) = 9^(1/2) = sqrt(9) = 3.0 * is multiplication ** is exponentiation also the answer is a float because division (1/2) always results in floats.
29th Jul 2017, 6:14 PM
God Usopp
God Usopp - avatar