Score
0
Watch 82 Star 352 Fork 72

合宙Luat / LuatOSLuaMIT

Air302V0002string.format()函数无法使用

缺陷
已完成
Aqst-666  Opened this issue

local function printf(...)
print(string.format(...))
end
local function Test1_fun()
local name = "Aqst-666"
local age = 23
local float_value = 3.14
while ture do
printf("Hello my name is %s\n,I am %d years old\n",name,age)
printf("This is a float value:%f",float_value)
float_value = float_value + 0.1
sys.wait(1000)
end
end

--启动系统框架,下面不要随便动
sys.taskInit(Test1_fun)
sys.run()

eyes 1
Attachments
4674 wendal 1578914274 total 2 participants

Comments (2)

4674 wendal 1578914274
Wendal 2020-08-22 14:07 owner

浮点数,正在修复中

4674 wendal 1578914274
Wendal 2020-09-10 11:51 owner

终于解决了

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority