pg.ddx.io pgsql-docs@postgresql.org mailing list archivehelp / color / mirror / Atom feed
Exponentiation example not clear 2+ messages / 2 participants [nested] [flat]
* Exponentiation example not clear @ 2021-07-18 14:45 PG Doc comments form <noreply@postgresql.org> 0 siblings, 1 reply; 2+ messages in thread From: PG Doc comments form @ 2021-07-18 14:45 UTC (permalink / raw) To: pgsql-docs@lists.postgresql.org; +Cc: mdione@grulic.org.ar The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/13/functions-math.html Description: Quoting the docs: Exponentiation (unlike typical mathematical practice, multiple uses of ^ will associate left to right) 2 ^ 3 → 8 2 ^ 3 ^ 3 → 512 You could probably add 2 ^ (3 ^ 3) → 134217728 # 2 ^27 ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Exponentiation example not clear @ 2021-07-21 22:05 Tom Lane <tgl@sss.pgh.pa.us> parent: PG Doc comments form <noreply@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2021-07-21 22:05 UTC (permalink / raw) To: mdione@grulic.org.ar; +Cc: pgsql-docs@lists.postgresql.org PG Doc comments form <noreply@postgresql.org> writes: > Quoting the docs: > Exponentiation (unlike typical mathematical practice, multiple uses of ^ > will associate left to right) > 2 ^ 3 → 8 > 2 ^ 3 ^ 3 → 512 > You could probably add > 2 ^ (3 ^ 3) → 134217728 # 2 ^27 Seems reasonable, done at https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=7fa1e1ef741964eeb50f33d7c72622658... regards, tom lane ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2021-07-21 22:05 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2021-07-18 14:45 Exponentiation example not clear PG Doc comments form <noreply@postgresql.org> 2021-07-21 22:05 ` Tom Lane <tgl@sss.pgh.pa.us>
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