Update....
Quote: "Next Question....
How do you round a number down to, x amount of decimal places?
I'm just converting the shot distances from inches to kilometres.
"
Ok, I finally found a way to round a number..
Using the string.format command.
TextColor(60,74,3,"TotalDistMtrs: "..(string.format("%.3f",totaldistancekmls)),255,255,255)
So...
..(string.format("%.3f",totaldistancekmls)) will give you the number to 3 decimal places.
where:
totaldistancekmls is a variable for the number. ie 0.2368524254
%.3f is to 3 places. ie 0.236
so %.2f is to 2 places.
I may be old, but at least my memory still ....hmmm
Pavilion dv6 Notebook, Intel(R) Core(TM) i5-2410M CPU @ 2.30 GHz, Win 7 64 bit, 16 GB Ram, Radeon (TM) HD 6490M, 2336 MB Memory. Resolution 1366x768, Intel(R) HD Graphics 3000. (WEI 5.8)