I need to find out a way to format large numbers as strings without transforming them into other numbers.
My code is here:
local no = 91234573457652910
print(no) -- prints 9.1234573457653e+16
print(tostring(no)) -- prints 9.1234573457653e+16
print(string.format("%.f", no)) -- prints 91234573457652912
print(string.format("%d", no)) -- prints 91234573457652912
As you can see Lua transformed them into the other numbers but I want to print the numbers as it is.
I want to know a way to print the numbers as it is in the output. So is there any solution for this issue?