> ... I'd be sorely tempted to replace all three by a single
> function that takes integer and returns numeric.
Yikes. Although numeric is theoretically nice, it is hundreds of times
slower than native doubles. We've already moved it in to some of the
other aggregate math functions without much discussion of the
performance hit.
- Thomas