lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



Hi.

I think I found a small error in your Lua book. At end of page 162 (chapter 20) is following example:

print(string.format("pi =  %.4f", PI))  --> pi = 3.1416

If think global "PI" is from Lua 4 and current one is "math.pi".

Best regards
floru