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