Cannot Print/create Float numbers...
Posted: Tue Oct 13, 2015 2:59 pm
OK,.. I am clearly doing something wrong,.. as all the docs say "it should work"... but what ever examples I try from various sources,.. fail in one way or another.
What have I miss-understood... how do I set a number to be a float,.. the docs infer I just use it with decimal places.... Am I just trying to print float number incorrectly?...
Tx Guys
- a = 22/7
print(string.format("%.2f", a))
What have I miss-understood... how do I set a number to be a float,.. the docs infer I just use it with decimal places.... Am I just trying to print float number incorrectly?...
Tx Guys