fixed Lua code for non-C locales

tonumber(0.2) may return nil if a locale-specific separator is ','