[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Rounding a number to integer
- From: "=?gb18030?b?uq3q2A==?=" <hanxi.info@...>
- Date: Fri, 29 Jul 2016 16:06:22 +0800
Lua 5.3.0 Copyright (C) 1994-2015 Lua.org, PUC-Rio
> 100000*1.005
100500.0
> math.floor(100000*1.005)
100499
I want a function like math.round.
> math.round(100000*1.005)
100500
Have some good idea?