Yeah.  OK, makes sense.  Sorry for the duplicate then.  Sadly, lua doesn't seem to have any of the happy "format numbers for people" libraries.  At least, not that I can find.   
The only thing I can think off, off-hand, to improve would be to use a drop-down for precision, and use that to round appropriately.  Saves dealing with whatever random format some demanding kitten asks for ;)
Seriously, though, don't let me stress you about it, and thank you for the mod.  It is great to have it.