basically, lets say i have 2 whole numbers:
number1 = 10
number2 = 67
I want to add them, but instead of getting the result “77” i want the result “10.67”.
How would i do that? and then of make it an actual number value, not a string.
basically, lets say i have 2 whole numbers:
number1 = 10
number2 = 67
I want to add them, but instead of getting the result “77” i want the result “10.67”.
How would i do that? and then of make it an actual number value, not a string.
What you can do is:
local number1 = 10
local number2 = 67
local str = number1.."."..number2
local toNumber = tonumber(str)
print(toNumber)
local number1 = 10
local number2 = 67
print(number1, ".", (number2 / 100))
As long as the second number is 2 digits.