Rounding strategy

From: PG Doc comments form <noreply(at)postgresql(dot)org>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Cc: rudolphfroger(at)dreamsolution(dot)nl
Subject: Rounding strategy
Date: 2021-04-19 08:00:07
Message-ID: 161881920775.685.12293798764864559341@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/13/functions-math.html
Description:

The 'round' mathematical function documentation doesn't specify its rounding
strategy. If this would be documented then users can rely on its rounding
behavior. For double precision the rounding probably depends on your
platform. For numeric the function seems to round to nearest with ties going
away from zero (sometimes referred to as "round half up). 6.5 -> 7.0 and
-6.5 -> -7.0.

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Laurenz Albe 2021-04-19 15:37:14 Re: Rounding strategy
Previous Message Alexander Korotkov 2021-04-16 14:25:18 Re: fix old confusing JSON example