pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: rudolphfroger@dreamsolution.nl
Subject: Rounding strategy
Date: Mon, 19 Apr 2021 08:00:07 +0000
Message-ID: <161881920775.685.12293798764864559341@wrigleys.postgresql.org> (raw)

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.


view thread (7+ messages)  latest in thread

Message-ID: <161881920775.685.12293798764864559341@wrigleys.postgresql.org>
Permalink:  ../161881920775.685.12293798764864559341@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/161881920775.685.12293798764864559341@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, rudolphfroger@dreamsolution.nl
  Subject: Re: Rounding strategy
  In-Reply-To: <161881920775.685.12293798764864559341@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox