Programming-Idioms

History of Idiom 22 > diff from v92 to v93

Edit summary for version 93 :
[Lua] A

Version 92

2020-02-12, 20:19:04

Version 93

2020-02-23, 06:12:34

Idiom #22 Convert string to integer

Extract integer value i from its string representation s (in radix 10)

Illustration

Idiom #22 Convert string to integer

Extract integer value i from its string representation s (in radix 10)

Illustration
Extra Keywords
int base conversion
Extra Keywords
int base conversion
Code
i = tonumber(s)
Code
local lua_profile = GameClient.LuaProfile:GetInstance()

require("tool/init")
require("proto/init")
require("extention/init")
require "global/init"
require("config/init")
require("game/init")

_G.DOTween = DG.Tweening.DOTween
game.__DEBUG__ = GameClient.GameConfig.GetClientConfig("GameMode") == "dev"
if UnityEngine.Application.platform == UnityEngine.RuntimePlatform.Android then
	game.Platform = "android"
elseif UnityEngine.Application.platform == UnityEngine.RuntimePlatform.IPhonePlayer then
	g