Lua: converting "userdata" variables into strings or numbers..?

P

planetnine

Guest
How can this be done?

gfx.printf will display them formatted, but tostring, tonumber and string.format don't convert userdata variables correctly or result in an error, and there is no sprintf function in Lua.

I've been reading up on userdata types, but it's not meaning much and I need a solution to this to compare takes with stored takes in ExtState.



>
 
   
   
   
Top