Post Reply 
Tupper's 'Self-referencing' Formula
05-20-2022, 08:55 PM
Post: #7
RE: Tupper's 'Self-referencing' Formula
(05-20-2022 08:46 PM)matalog Wrote:  You refer to q2 as a string when you use
Code:
q = q .. q2
but you refer to it as a number when you use
Code:
local q2 = floor(r2/den)
. Is it a string or a number?

q2 is a number, 0 to 9

For string concatenation, lua has implicit number/string conversion.
To write code explicitly, it is q = q .. tostring(q2)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Tupper's 'Self-referencing' Formula - Albert Chan - 05-20-2022 08:55 PM



User(s) browsing this thread: 1 Guest(s)