lua-users home
lua-l archive

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


Mike Pall wrote:
[...]
>   local r = remaining % 256
>   string.char(112 + (remaining-r)/256, r)

Is this the preferred approach to using math.floor() (which is what I
usually end up with when converting things to integers)?

-- 
David Given
dg@cowlark.com