mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Merge pull request #4754 from Sainan/patch-1
[lua/en] Fix incorrect information about numbers
This commit is contained in:
commit
ec40f8d839
@ -17,10 +17,7 @@ filename: learnlua.lua
|
||||
-- 1. Variables and flow control.
|
||||
----------------------------------------------------
|
||||
|
||||
num = 42 -- All numbers are doubles.
|
||||
-- Don't freak out, 64-bit doubles have 52 bits for
|
||||
-- storing exact int values; machine precision is
|
||||
-- not a problem for ints that need < 52 bits.
|
||||
num = 42 -- Numbers can be integer or floating point.
|
||||
|
||||
s = 'walternate' -- Immutable strings like Python.
|
||||
t = "double-quotes are also fine"
|
||||
|
Loading…
Reference in New Issue
Block a user