title: Convert decimal to hex in Lua 4?
body: <p>I found this formula to convert decimal numbers to hexadecimal color values in Lua:</p>
  <p><a href="http://lua-users.org/lists/lua-l/2004-09/msg00054.html" rel="nofollow noreferrer">http://lua-users.org/lists/lua-l/2004-09/msg00054.html</a></p>
  <p>However, I have a few questions about the formula:</p>
  <ol>
  <li>My input needs to be normalized between 0 and 1 instead of 0 and 255. Is this a potential problem?</li>
  <li>I am stuck with Lua 4.01 instead of whatever the latest version is. I can't upgrade. Is this a problem?</li>
  </ol>
  <p>Thanks!!</p>