lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 22/03/2014 14.09, Egor Skriptunoff wrote:
Does it mean the following:
assert(4.5//1.5 == 4)
I was expecting 3 as the result of 4.5//1.5

At first glance, yes. But that would be a fp division followed by rounding to the nearest integer, which would defeat the purpose of integer division.

--
  Enrico