Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I cap number values?

Asked by 6 years ago

Like for instance, if the number was 1,023, it would say 1K+, or if the number was 1,389,988,123 then it would say 1.3B+, and so on.

0
1,389,988,123 would be rounded to 1.4B GingeyLol 338 — 6y
0
Use a if statement -- if x > 5 then -- GingeyLol 338 — 6y
0
or you can count the # of digits and round the number GingeyLol 338 — 6y
0
Here is a starting resource: http://lua-users.org/wiki/FormattingNumbers WillieTehWierdo200 966 — 6y

Answer this question