Created
July 21, 2020 23:49
-
-
Save StevenWarren/36d49bf3cf0970193bb167da10d0d95d to your computer and use it in GitHub Desktop.
Hack to stop Corona going scientific
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--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