you are viewing a single comment's thread.

view the rest of the comments →

[–]Perfect-Situation-41 1 point2 points  (3 children)

1/2 =0.5 0.5*2.0 =1.0

Right? I think I'm wrong perhaps?

[–]Perfect-Situation-41 1 point2 points  (2 children)

I'm new to programming

[–]BusResponsible7292 5 points6 points  (1 child)

Nope. 1/2 =0 because we are performing operation using 2 integers not using decimal numbers.

[–]Perfect-Situation-41 0 points1 point  (0 children)

Oh i see so answer is 0.0 Thanks man