• Professional advice
  • Order before 16.30 uur shipped today
  • Always reachable (+31 73 762 0 762)
  • Monday open late

Tostring command

tostring()

 

Action :

Tries to convert the passed variable(number) to a text-string.
 

Usage and parameters :

tostring(argument)

  • argument: The artgument of a random type that needs to be converted to a string.

 

Returned value :

A textt-string,

 

Programming example :

-- Set a numeber to a variable.
local mijngetal = 49
-- Convert the number to a string
local
mijnstring =tostring(49) 
fibaro:debug('The number is converted to this string : ' ..mijnstring);

 

 

Zie ook:

tonumber()
LUA referentie manual 5.2 : tostring

 

 
Customer Service Phone

+31737620762
mon-fri: 10am-5pm and sat 10am-3pm

 
Adress

Gerstakker 16 5236 VG Empel Netherlands

Google maps