[PATCH 1/5] decimal: fix decimal.round() when scale == 0

Vladimir Davydov vdavydov.dev at gmail.com
Wed Jul 24 15:10:54 MSK 2019


On Wed, Jul 17, 2019 at 06:33:42PM +0300, Serge Petrenko wrote:
> Fixes decimal.round() with zero scale, fixes an error with
> decimal.round() when rounding leads to a number with the same
> precision, for example, decimal.round(9.9, 0) -> 10.
> 
> Follow-up #692
> ---
>  src/lib/core/decimal.c    |  8 ++++----
>  test/app/decimal.result   | 18 ++++++++++++++++++
>  test/app/decimal.test.lua |  6 ++++++
>  3 files changed, 28 insertions(+), 4 deletions(-)

Pushed to master.



More information about the Tarantool-patches mailing list