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

How would I change numbers with mulitple decimals to just one decimal?

Asked by
LawlR 182
5 years ago

For example, how would I change 4.842304203443432 to 4.8?

I tried using math.ceil but that changes it to a whole number. How would I keep one decimal place?

0
bump User#24093 0 — 5y
0
Commenting on questions doesn't bump the question. User#19524 175 — 5y
0
Okay, I got the answer from https://scriptinghelpers.org/questions/31645/rounding-to-2-decimal-places if anyone wants an answer too. LawlR 182 — 5y

Answer this question