Skip to content

Instantly share code, notes, and snippets.

@StevenWarren
Created July 21, 2020 23:49
Show Gist options
  • Save StevenWarren/36d49bf3cf0970193bb167da10d0d95d to your computer and use it in GitHub Desktop.
Save StevenWarren/36d49bf3cf0970193bb167da10d0d95d to your computer and use it in GitHub Desktop.
Hack to stop Corona going scientific
--hack to stop Corona going scientific
local _tostring = tostring
tostring = function( v )
if type(v) == 'number' and v>10e12 then
return string.format("%.f", v)
end
return _tostring(v)
end
package.loaded[ 'json' ] = nil
package.loaded[ 'dkjson' ] = nil
local json = require "json"
tostring = _tostring
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment