Number: Decimal limitation?
Hey fellow codefreaks
Am new to LUA, as you probably can tell else I would not ask such a question :) Well since LUA only have floating point numbers, how do I limit a number to ie only have two decimals? |
Code:
format("%.2f", number) http://www.lua.org/pil/20.html |
Ah I see. Format for, yea, formatting the contens. Got it :rolleyes:
|
All times are GMT -6. The time now is 03:48 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI