Re: BUG #2037: user function call unexpected "input out of range"

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Tom" <lackey(at)ltu(dot)edu>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2037: user function call unexpected "input out of range"
Date: 2005-11-12 17:18:49
Message-ID: 28310.1131815929@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Tom" <lackey(at)ltu(dot)edu> writes:
> Description: user function call unexpected "input out of range"

Why does this surprise you? Floating point computation is inherently
inexact, so coming out with a value fractionally greater than 1 for
the acos() argument doesn't seem all that unlikely. You probably
ought to add some code to clamp the result to the legal range.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Fuhr 2005-11-12 17:25:31 Re: BUG #2037: user function call unexpected "input out of range"
Previous Message Tomas Zerolo 2005-11-12 17:08:17 Re: BUG #2037: user function call unexpected "input out of range"