Stephan Szabo <sszabo@xxxxxxxxxxxxxxxxxxxxx> writes: > It also doesn't seem to work terribly well: It's not terribly bright about figuring out how many significant digits it should try to calculate, nor about how many it's actually got in the result. Feel free to fix that ;-) I believe the numeric exp() and ln() functions have similar issues. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq