For an example, I have a number as 19.349208488, I want it to be resulting 19.3 instead. How could I do it? Many thanks.
COMMUNITY QUESTION
How to limit a field length?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

6 comments
round it
https://stackoverflow.com/questions/41533880/how-to-round-to-the-nearest-tenth
https://scriptinghelpers.org/questions/4850/how-do-i-round-numbers-in-lua-answered
https://forums.coronalabs.com/topic/33592-round-a-number-to-the-first-decimal/
https://ardoris.wordpress.com/2008/11/07/rounding-to-a-certain-number-of-decimal-places-in-lua/
Here are a few links to some websites I found. If you had just looked this up you would not have needed to ask this question. Please use google before asking a question in the future. Odds are, it has already been asked somewhere.