From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 24 Jul 2019 15:10:54 +0300 From: Vladimir Davydov Subject: Re: [PATCH 1/5] decimal: fix decimal.round() when scale == 0 Message-ID: <20190724121054.GC11394@esperanza> References: <07a505e362ff037833e6501bf62a864b86694f91.1563376957.git.sergepetrenko@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <07a505e362ff037833e6501bf62a864b86694f91.1563376957.git.sergepetrenko@tarantool.org> To: Serge Petrenko Cc: tarantool-patches@freelists.org List-ID: 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.