17.01.2017, 14:00
It won't become a float. All types must be known compile-time, otherwise you'll get an compiler warning of tag mismatch. So, if you divide tagless variable by tagless variable, you'll get tagless result with fraction part discarded: 5 / 2 == 2. If at least one side of operations is a float, then you'll get a float: 5 / 2.0 == 2.5. So, if you do:
You'll get a tag mismatch.
pawn Код:
new result = 5 / 2.0;